0_0_34613662_17418.cpp: In function 'void init()':
0_0_34613662_17418.cpp:13:3: error: reference to 'rank' is ambiguous
rank[i] = 1;
^
0_0_34613662_17418.cpp:7:34: note: candidates are: int rank [1005]
int father[1005],n,m,i,j,a,b,cnt,rank[1005];
^
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_34613662_17418.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_34613662_17418.cpp: In function 'void merge(int, int)':
0_0_34613662_17418.cpp:25:5: error: reference to 'rank' is ambiguous
if(rank[a] < rank[b])
^
0_0_34613662_17418.cpp:7:34: note: candidates are: int rank [1005]
int father[1005],n,m,i,j,a,b,cnt,rank[1005];
^
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_34613662_17418.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_34613662_17418.cpp:25:15: error: reference to 'rank' is ambiguous
if(rank[a] < rank[b])
^
0_0_34613662_17418.cpp:7:34: note: candidates are: int rank [1005]
int father[1005],n,m,i,j,a,b,cnt,rank[1005];
^
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_34613662_17418.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_34613662_17418.cpp:32:6: error: reference to 'rank' is ambiguous
if(rank[b] == rank[a])
^
0_0_34613662_17418.cpp:7:34: note: candidates are: int rank [1005]
int father[1005],n,m,i,j,a,b,cnt,rank[1005];
^
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_34613662_17418.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_34613662_17418.cpp:32:17: error: reference to 'rank' is ambiguous
if(rank[b] == rank[a])
^
0_0_34613662_17418.cpp:7:34: note: candidates are: int rank [1005]
int father[1005],n,m,i,j,a,b,cnt,rank[1005];
^
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_34613662_17418.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_34613662_17418.cpp:34:6: error: reference to 'rank' is ambiguous
++rank[a];
^
0_0_34613662_17418.cpp:7:34: note: candidates are: int rank [1005]
int father[1005],n,m,i,j,a,b,cnt,rank[1005];
^
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_34613662_17418.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|