0_0_36364095_18540.cpp: In function 'int main()':
0_0_36364095_18540.cpp:8:5: error: 'string' was not declared in this scope
string str, place;
^
0_0_36364095_18540.cpp:8:5: 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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36364095_18540.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_36364095_18540.cpp:9:5: error: 'cin' was not declared in this scope
cin >> t >> endl;
^
0_0_36364095_18540.cpp:9:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_36364095_18540.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_36364095_18540.cpp:9:17: error: 'endl' was not declared in this scope
cin >> t >> endl;
^
0_0_36364095_18540.cpp:9:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36364095_18540.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
0_0_36364095_18540.cpp:12:20: error: 'str' was not declared in this scope
cin >> str;
^
0_0_36364095_18540.cpp:14:13: error: 'str' was not declared in this scope
if (str.substr(0,2) == "33"){
^
0_0_36364095_18540.cpp:15:13: error: 'place' was not declared in this scope
place = "Zhejiang";
^
0_0_36364095_18540.cpp:17:13: error: 'place' was not declared in this scope
place = "Beijing";
^
0_0_36364095_18540.cpp:19:13: error: 'place' was not declared in this scope
place = "Taiwan";
^
0_0_36364095_18540.cpp:21:13: error: 'place' was not declared in this scope
place = "Hong Kong";
^
0_0_36364095_18540.cpp:23:13: error: 'place' was not declared in this scope
place = "Mcao";
^
0_0_36364095_18540.cpp:25:13: error: 'place' was not declared in this scope
place = "Tibet";
^
0_0_36364095_18540.cpp:27:13: error: 'place' was not declared in this scope
place = "Liaoning";
^
0_0_36364095_18540.cpp:29:13: error: 'place' was not declared in this scope
place = "Shanghai";
^
0_0_36364095_18540.cpp:32:9: error: 'cout' was not declared in this scope
cout <<"He/she is from"<<" "<<place
^
0_0_36364095_18540.cpp:32:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_36364095_18540.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
0_0_36364095_18540.cpp:32:39: error: 'place' was not declared in this scope
cout <<"He/she is from"<<" "<<place
^
0_0_36364095_18540.cpp:33:55: error: 'str' was not declared in this scope
<<",and his/her birthday is on"<<" "<<str.substr(10,2)<<","
^
|