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_13601438_21654.cpp: In function 'void dfs(int, int)':
0_0_13601438_21654.cpp:38:49: error: reference to 'rank' is ambiguous
  if (keychild[u] == 0) belong[u] = ++ path_cnt, rank[u] = 1;
                                                 ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp:44:5: error: reference to 'rank' is ambiguous
     rank[u] = rank[e[i].loc] + 1;
     ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp:44:15: error: reference to 'rank' is ambiguous
     rank[u] = rank[e[i].loc] + 1;
               ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp:46:35: error: reference to 'rank' is ambiguous
     path_size[belong[e[i].loc]] = rank[e[i].loc];
                                   ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp: In function 'void modify_2(int, int)':
0_0_13601438_21654.cpp:153:8: error: reference to 'rank' is ambiguous
    if (rank[x] > 1) change(1, 1, n, go[x] - 1, go[x] - 1);
        ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp:157:8: error: reference to 'rank' is ambiguous
    if (rank[y] > 1) change(1, 1, n, go[y] - 1, go[y] - 1);
        ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp:162:6: error: reference to 'rank' is ambiguous
  if (rank[x] > 1) change(1, 1, n, go[x] - 1, go[x] - 1);
      ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp: In function 'int main()':
0_0_13601438_21654.cpp:205:26: error: reference to 'rank' is ambiguous
   path_size[belong[1]] = rank[1];
                          ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_13601438_21654.cpp:208:67: error: reference to 'rank' is ambiguous
   for (int i = 1; i <= n; i ++) go[i] = path_sum[belong[i] - 1] + rank[i];
                                                                   ^
0_0_13601438_21654.cpp:25:74: note: candidates are: int rank [100005]
 int father[MAXN], size[MAXN], keychild[MAXN], depth[MAXN], belong[MAXN], rank[MAXN], go[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++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_13601438_21654.cpp:5:
D:/HDOJ/Compi


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-07-08 09:00:56, Gzip enabled