0_0_19437594_12763.cpp: In function 'void init()':
0_0_19437594_12763.cpp:19:18: error: reference to 'rank' is ambiguous
par[i]=i,rank[i]=0,wir[i]=nsta+i;
^
0_0_19437594_12763.cpp:12:5: note: candidates are: int rank [100008]
int rank[MAX_N];//并查集记录深度
^
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_19437594_12763.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19437594_12763.cpp: In function 'void unite(int, int)':
0_0_19437594_12763.cpp:35:8: error: reference to 'rank' is ambiguous
if(rank[x]<rank[y])
^
0_0_19437594_12763.cpp:12:5: note: candidates are: int rank [100008]
int rank[MAX_N];//并查集记录深度
^
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_19437594_12763.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19437594_12763.cpp:35:16: error: reference to 'rank' is ambiguous
if(rank[x]<rank[y])
^
0_0_19437594_12763.cpp:12:5: note: candidates are: int rank [100008]
int rank[MAX_N];//并查集记录深度
^
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_19437594_12763.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19437594_12763.cpp:39:12: error: reference to 'rank' is ambiguous
if(rank[x]==rank[y]) ++rank[x];
^
0_0_19437594_12763.cpp:12:5: note: candidates are: int rank [100008]
int rank[MAX_N];//并查集记录深度
^
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_19437594_12763.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19437594_12763.cpp:39:21: error: reference to 'rank' is ambiguous
if(rank[x]==rank[y]) ++rank[x];
^
0_0_19437594_12763.cpp:12:5: note: candidates are: int rank [100008]
int rank[MAX_N];//并查集记录深度
^
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_19437594_12763.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19437594_12763.cpp:39:32: error: reference to 'rank' is ambiguous
if(rank[x]==rank[y]) ++rank[x];
^
0_0_19437594_12763.cpp:12:5: note: candidates are: int rank [100008]
int rank[MAX_N];//并查集记录深度
^
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_19437594_12763.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|