F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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];
      |     ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 05:20:21, Gzip enabled