0_0_32918088_28299.cpp: In function 'void init(int)':
0_0_32918088_28299.cpp:23:3: error: reference to 'rank' is ambiguous
rank[i] = 1; // 每个节点构成的
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp: In function 'void join(int, int)':
0_0_32918088_28299.cpp:49:5: error: reference to 'rank' is ambiguous
if(rank[rootx] > rank[rooty]){
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp:49:19: error: reference to 'rank' is ambiguous
if(rank[rootx] > rank[rooty]){
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp:52:5: error: reference to 'rank' is ambiguous
if(rank[rootx] == rank[rooty]){
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp:52:20: error: reference to 'rank' is ambiguous
if(rank[rootx] == rank[rooty]){
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp:53:6: error: reference to 'rank' is ambiguous
rank[y]++;
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp:56:5: error: reference to 'rank' is ambiguous
if(rank[rootx] < rank[rooty]){
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_32918088_28299.cpp:56:19: error: reference to 'rank' is ambiguous
if(rank[rootx] < rank[rooty]){
^
0_0_32918088_28299.cpp:16:5: note: candidates are: int rank [10009]
int 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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_32918088_28299.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|