0_0_39434058_6216.cpp: In function 'void link(int, int)':
0_0_39434058_6216.cpp:14:12: error: reference to 'rank' is ambiguous
14 | if(rank[x] > rank[y])
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:60,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
0_0_39434058_6216.cpp:14:22: error: reference to 'rank' is ambiguous
14 | if(rank[x] > rank[y])
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
0_0_39434058_6216.cpp:22:20: error: reference to 'rank' is ambiguous
22 | if(rank[x] == rank[y])
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
0_0_39434058_6216.cpp:22:31: error: reference to 'rank' is ambiguous
22 | if(rank[x] == rank[y])
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
0_0_39434058_6216.cpp:24:25: error: reference to 'rank' is ambiguous
24 | rank[x]++;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
0_0_39434058_6216.cpp: In function 'void init()':
0_0_39434058_6216.cpp:57:16: error: reference to 'rank' is ambiguous
57 | memset(rank,0,sizeof(rank));
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
0_0_39434058_6216.cpp:57:30: error: reference to 'rank' is ambiguous
57 | memset(rank,0,sizeof(rank));
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/type_traits:1356:12: note: candidates are: 'template<class> struct std::rank'
1356 | struct rank
| ^~~~
0_0_39434058_6216.cpp:10:5: note: 'int rank [1010]'
10 | int rank[X];
| ^~~~
|