0_0_16742063_25956.cpp: In function 'void F(int)':
0_0_16742063_25956.cpp:79:3: error: reference to 'rank' is ambiguous
rank[v]=rank[u];
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16742063_25956.cpp:79:11: error: reference to 'rank' is ambiguous
rank[v]=rank[u];
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16742063_25956.cpp: In function 'int main()':
0_0_16742063_25956.cpp:123:10: error: reference to 'rank' is ambiguous
memset(rank,0,sizeof rank);
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16742063_25956.cpp:123:24: error: reference to 'rank' is ambiguous
memset(rank,0,sizeof rank);
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16742063_25956.cpp:124:24: error: reference to 'rank' is ambiguous
for(int i=0;i<3;i++) rank[p[i].u]=i+1;
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16742063_25956.cpp:140:32: error: reference to 'rank' is ambiguous
printf("%d\n",ans=min(t,mn[rank[u]][rank[v]]));
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16742063_25956.cpp:140:41: error: reference to 'rank' is ambiguous
printf("%d\n",ans=min(t,mn[rank[u]][rank[v]]));
^
0_0_16742063_25956.cpp:73:5: note: candidates are: int rank [1000005]
int rank[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_16742063_25956.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|