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_18168892_2983.cpp: In function 'void da()':
0_0_18168892_2983.cpp:20:2: error: reference to 'rank' is ambiguous
  rank[sa[1]] = 1;
  ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:23:3: error: reference to 'rank' is ambiguous
   rank[sa[i]] = rank[sa[i - 1]];
   ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:23:17: error: reference to 'rank' is ambiguous
   rank[sa[i]] = rank[sa[i - 1]];
                 ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:24:35: error: reference to 'rank' is ambiguous
   if (ch[sa[i]] != ch[sa[i - 1]]) rank[sa[i]] ++;
                                   ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:26:18: error: reference to 'rank' is ambiguous
  for (int l = 1; rank[sa[n]] < n; l <<= 1)
                  ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:32:16: error: reference to 'rank' is ambiguous
    cntA[A[i] = rank[i]] ++;
                ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:33:31: error: reference to 'rank' is ambiguous
    cntB[B[i] = (i + l <= n) ? rank[i + l] : 0] ++;
                               ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:39:3: error: reference to 'rank' is ambiguous
   rank[sa[1]] = 1;
   ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:42:4: error: reference to 'rank' is ambiguous
    rank[sa[i]] = rank[sa[i - 1]];
    ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:42:18: error: reference to 'rank' is ambiguous
    rank[sa[i]] = rank[sa[i - 1]];
                  ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:43:62: error: reference to 'rank' is ambiguous
    if (A[sa[i]] != A[sa[i - 1]] || B[sa[i]] != B[sa[i - 1]]) rank[sa[i]] ++;
                                                              ^
0_0_18168892_2983.cpp:11:26: note: candidates are: int rank [100005]
 int sa[maxn], tsa[maxn], rank[maxn], height[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_18168892_2983.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_18168892_2983.cpp:49:29: error: reference to 'rank' is ambiguous
   while (ch[i + j] == ch[sa[rank[i] - 1] + j]) j ++;
                             ^
0_0_18168892_2983.cpp:11:26: note: 


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-03 07:16:15, Gzip enabled