0_0_29762031_20799.cpp: In function 'int main()':
0_0_29762031_20799.cpp:28:8: error: 'cin' was not declared in this scope
while(cin>>N>>C&&N&&C)
^
0_0_29762031_20799.cpp:28:8: 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_29762031_20799.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_29762031_20799.cpp:38:23: error: 'sort' was not declared in this scope
sort(stu,stu+N,cmp1);
^
0_0_29762031_20799.cpp:38:23: 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_29762031_20799.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,
^
0_0_29762031_20799.cpp:42:23: error: 'sort' was not declared in this scope
sort(stu,stu+N,cmp2);
^
0_0_29762031_20799.cpp:42:23: 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_29762031_20799.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,
^
0_0_29762031_20799.cpp:45:6: error: 'c' was not declared in this scope
if(c==3)
^
0_0_29762031_20799.cpp:47:23: error: 'sort' was not declared in this scope
sort(stu,stu+N,cmp3);
^
0_0_29762031_20799.cpp:47:23: 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_29762031_20799.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,
^
0_0_29762031_20799.cpp:51:4: error: 'cout' was not declared in this scope
cout<<stu[i].num<<" "<<stu[i].name<<" "<<stu[i].score;
^
0_0_29762031_20799.cpp:51:4: 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_29762031_20799.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
|