0_0_27461518_17760.cpp: In function 'void init()':
0_0_27461518_17760.cpp:14:9: error: reference to 'rank' is ambiguous
rank[i] = 0;
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp: In function 'void unite(int, int)':
0_0_27461518_17760.cpp:27:8: error: reference to 'rank' is ambiguous
if(rank[x] < rank[y])
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp:27:18: error: reference to 'rank' is ambiguous
if(rank[x] < rank[y])
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp:31:12: error: reference to 'rank' is ambiguous
if(rank[x] == rank[y]) ++rank[x];
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp:31:23: error: reference to 'rank' is ambiguous
if(rank[x] == rank[y]) ++rank[x];
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp:31:35: error: reference to 'rank' is ambiguous
if(rank[x] == rank[y]) ++rank[x];
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp: In function 'int main()':
0_0_27461518_17760.cpp:48:33: error: reference to 'rank' is ambiguous
if(find(r) == r && !rank[r]) q1.push(r);
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.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_27461518_17760.cpp:51:33: error: reference to 'rank' is ambiguous
if(find(i) == i && !rank[i]) q2.push(i);
^
0_0_27461518_17760.cpp:9:16: note: candidates are: int rank [1010]
int par[MaxN], rank[MaxN];
^
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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_27461518_17760.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|