0_0_37392004_2245.cpp:12:10: error: reference to 'rank' is ambiguous
bool cmp(rank a,rank b){
^
0_0_37392004_2245.cpp:6:8: note: candidates are: struct rank
struct rank {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
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_37392004_2245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_37392004_2245.cpp:12:17: error: reference to 'rank' is ambiguous
bool cmp(rank a,rank b){
^
0_0_37392004_2245.cpp:6:8: note: candidates are: struct rank
struct rank {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
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_37392004_2245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_37392004_2245.cpp:12:23: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(rank a,rank b){
^
0_0_37392004_2245.cpp:12:24: error: expected ',' or ';' before '{' token
bool cmp(rank a,rank b){
^
0_0_37392004_2245.cpp: In function 'int main()':
0_0_37392004_2245.cpp:23:2: error: reference to 'rank' is ambiguous
rank a[1010];
^
0_0_37392004_2245.cpp:6:8: note: candidates are: struct rank
struct rank {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
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_37392004_2245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_37392004_2245.cpp:25:13: error: 'a' was not declared in this scope
while(cin>>a[x].name) {
^
0_0_37392004_2245.cpp:75:7: error: 'a' was not declared in this scope
sort(a,a+x,cmp);
^
|