0_0_20414337_3642.cpp:3:1: error: 'vector' does not name a type
vector<int> num;
^
0_0_20414337_3642.cpp: In function 'int main()':
0_0_20414337_3642.cpp:6:2: error: 'string' was not declared in this scope
string str;
^
0_0_20414337_3642.cpp:6:2: 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_20414337_3642.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_20414337_3642.cpp:7:2: error: 'cin' was not declared in this scope
cin >> str;
^
0_0_20414337_3642.cpp:7:2: 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_20414337_3642.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_20414337_3642.cpp:7:9: error: 'str' was not declared in this scope
cin >> str;
^
0_0_20414337_3642.cpp:18:3: error: 'num' was not declared in this scope
num.push_back(tmp);
^
0_0_20414337_3642.cpp:20:7: error: 'num' was not declared in this scope
sort(num.begin(), num.end());
^
0_0_20414337_3642.cpp:20:29: error: 'sort' was not declared in this scope
sort(num.begin(), num.end());
^
0_0_20414337_3642.cpp:20:29: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_20414337_3642.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
|