0_0_16292046_1662.cpp: In function 'void deal()':
0_0_16292046_1662.cpp:19:26: error: reference to 'rank' is ambiguous
for(int i=1;i<=n;i++)rank[i]=1;
^
0_0_16292046_1662.cpp:11:61: note: candidates are: int rank [505]
int n,gp_boy[505][505],gp_girl[505][505],boy[505],girl[505],rank[505];
^
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++/string:40,
from 0_0_16292046_1662.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16292046_1662.cpp:27:33: error: reference to 'rank' is ambiguous
int g=gp_boy[i][rank[i]++];
^
0_0_16292046_1662.cpp:11:61: note: candidates are: int rank [505]
int n,gp_boy[505][505],gp_girl[505][505],boy[505],girl[505],rank[505];
^
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++/string:40,
from 0_0_16292046_1662.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|