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_30400959_17095.cpp: In function 'void qsort()':
0_0_30400959_17095.cpp:70:5: error: reference to 'rank' is ambiguous
   c[rank[i]]++;
     ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:74:8: error: reference to 'rank' is ambiguous
   sa[c[rank[tp[i]]]--] = tp[i];
        ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp: In function 'void suffixsort()':
0_0_30400959_17095.cpp:81:3: error: reference to 'rank' is ambiguous
   rank[i] = str[i];
   ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:94:11: error: reference to 'rank' is ambiguous
   swap(tp,rank);
           ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:95:3: error: reference to 'rank' is ambiguous
   rank[sa[1]] = p = 1;
   ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:97:4: error: reference to 'rank' is ambiguous
    rank[sa[i]] = (tp[sa[i - 1]] == tp[sa[i]] && tp[sa[i - 1] + k] == tp[sa[i] + k]) ? p : ++p;
    ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp: In function 'void get_height()':
0_0_30400959_17095.cpp:114:10: error: reference to 'rank' is ambiguous
   height[rank[i]] = cur = cur + solve(i + cur,sa[rank[i] + 1] + cur);
          ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:114:50: error: reference to 'rank' is ambiguous
   height[rank[i]] = cur = cur + solve(i + cur,sa[rank[i] + 1] + cur);
                                                  ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp: In function 'int main()':
0_0_30400959_17095.cpp:177:15: error: reference to 'rank' is ambiguous
    if (height[rank[l] - 1] < r - l + 1)
               ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:178:10: error: reference to 'rank' is ambiguous
     tl = rank[l];
          ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.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_30400959_17095.cpp:180:14: error: reference to 'rank' is ambiguous
     tl = tdl(rank[l] - 1,r - l + 1);
              ^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
 int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
                      ^
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_30400959_17095.


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-25 01:27:13, Gzip enabled