F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_29978039_29615.cpp:7:12: error: 'string' was not declared in this scope
 bool judge(string a,string b)
            ^
0_0_29978039_29615.cpp:7:12: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_29978039_29615.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note:   'std::string'
   typedef basic_string<char>    string;   
                                 ^
0_0_29978039_29615.cpp:7:21: error: 'string' was not declared in this scope
 bool judge(string a,string b)
                     ^
0_0_29978039_29615.cpp:7:21: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_29978039_29615.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note:   'std::string'
   typedef basic_string<char>    string;   
                                 ^
0_0_29978039_29615.cpp:7:29: error: expression list treated as compound expression in initializer [-fpermissive]
 bool judge(string a,string b)
                             ^
0_0_29978039_29615.cpp:8:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_29978039_29615.cpp: In function 'int main()':
0_0_29978039_29615.cpp:29:56: error: 'judge' cannot be used as a function
         else if(a[0]==b[0]&&a[la-1]==b[lb-1]&&judge(a,b))   cout<<"Yes"<<endl;
                                                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 08:35:39, Gzip enabled