0_0_25586719_19601.cpp: In function 'void init(int)':
0_0_25586719_19601.cpp:13:3: error: reference to 'rank' is ambiguous
rank[i]=1;
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp: In function 'void merge(int, int)':
0_0_25586719_19601.cpp:27:5: error: reference to 'rank' is ambiguous
if(rank[x]<rank[y])
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp:27:13: error: reference to 'rank' is ambiguous
if(rank[x]<rank[y])
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp:30:2: error: reference to 'rank' is ambiguous
rank[x]+=rank[y];
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp:30:11: error: reference to 'rank' is ambiguous
rank[x]+=rank[y];
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp:31:2: error: reference to 'rank' is ambiguous
rank[y]=0;
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp: In function 'int main()':
0_0_25586719_19601.cpp:55:5: error: reference to 'rank' is ambiguous
rank[find(id[x])]--;
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25586719_19601.cpp:59:8: error: reference to 'rank' is ambiguous
if(rank[i])
^
0_0_25586719_19601.cpp:6:11: note: candidates are: int rank [100005]
int id[N],rank[N],father[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_25586719_19601.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|