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;
^
|