0_0_17082141_1357.cpp: In function 'int main()':
0_0_17082141_1357.cpp:49:24: error: reference to 'rank' is ambiguous
for(int i=1;i<=n;i++)rank[a[i].id]=i;
^
0_0_17082141_1357.cpp:9:13: note: candidates are: int rank [100001]
int cnt,n,m,rank[maxn],root[maxn];
^
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_17082141_1357.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_17082141_1357.cpp:54:11: error: reference to 'rank' is ambiguous
insert(rank[i],root[i],1,n);
^
0_0_17082141_1357.cpp:9:13: note: candidates are: int rank [100001]
int cnt,n,m,rank[maxn],root[maxn];
^
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_17082141_1357.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|