0_0_19797545_10037.cpp: In function 'void unite(int, int)':
0_0_19797545_10037.cpp:18:5: error: reference to 'rank' is ambiguous
if(rank[x]<rank[y])
^
0_0_19797545_10037.cpp:4:15: note: candidates are: int rank [1010]
int par[1010],rank[1010];
^
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_19797545_10037.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_19797545_10037.cpp:18:13: error: reference to 'rank' is ambiguous
if(rank[x]<rank[y])
^
0_0_19797545_10037.cpp:4:15: note: candidates are: int rank [1010]
int par[1010],rank[1010];
^
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_19797545_10037.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_19797545_10037.cpp:22:5: error: reference to 'rank' is ambiguous
if(rank[x]==rank[y])
^
0_0_19797545_10037.cpp:4:15: note: candidates are: int rank [1010]
int par[1010],rank[1010];
^
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_19797545_10037.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_19797545_10037.cpp:22:14: error: reference to 'rank' is ambiguous
if(rank[x]==rank[y])
^
0_0_19797545_10037.cpp:4:15: note: candidates are: int rank [1010]
int par[1010],rank[1010];
^
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_19797545_10037.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_19797545_10037.cpp:23:3: error: reference to 'rank' is ambiguous
rank[x]++;
^
0_0_19797545_10037.cpp:4:15: note: candidates are: int rank [1010]
int par[1010],rank[1010];
^
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_19797545_10037.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_19797545_10037.cpp: In function 'int main()':
0_0_19797545_10037.cpp:38:4: error: reference to 'rank' is ambiguous
rank[i]=0;
^
0_0_19797545_10037.cpp:4:15: note: candidates are: int rank [1010]
int par[1010],rank[1010];
^
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_19797545_10037.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|