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_17540953_17219.cpp: In function 'void isort(int)':
0_0_17540953_17219.cpp:22:40: error: reference to 'rank' is ambiguous
     for (int i = 1; i <= len; i++) sum[rank[i + d]]++;
                                        ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:24:47: error: reference to 'rank' is ambiguous
     for (int i = len; i >= 1; i--) tmp_sa[sum[rank[i + d]]--] = i;
                                               ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:27:40: error: reference to 'rank' is ambiguous
     for (int i = 1; i <= len; i++) sum[rank[i]]++;
                                        ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:29:43: error: reference to 'rank' is ambiguous
     for (int i = len; i >= 1; i--) sa[sum[rank[tmp_sa[i]]]--] = tmp_sa[i];
                                           ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:34:14: error: reference to 'rank' is ambiguous
             (rank[sa[i - 1]] != rank[sa[i]] || rank[sa[i - 1] + d] != rank[sa[i] + d]);
              ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:34:33: error: reference to 'rank' is ambiguous
             (rank[sa[i - 1]] != rank[sa[i]] || rank[sa[i - 1] + d] != rank[sa[i] + d]);
                                 ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:34:48: error: reference to 'rank' is ambiguous
             (rank[sa[i - 1]] != rank[sa[i]] || rank[sa[i - 1] + d] != rank[sa[i] + d]);
                                                ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:34:71: error: reference to 'rank' is ambiguous
             (rank[sa[i - 1]] != rank[sa[i]] || rank[sa[i - 1] + d] != rank[sa[i] + d]);
                                                                       ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:35:36: error: reference to 'rank' is ambiguous
     for (int i = 1; i <= len; i++) rank[i] = tmp_rank[i];
                                    ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp: In function 'int main()':
0_0_17540953_17219.cpp:52:9: error: reference to 'rank' is ambiguous
         rank[sa[1]] = 1;
         ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[maxn], sum[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_17540953_17219.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17540953_17219.cpp:53:40: error: reference to 'rank' is ambiguous
         for (int i = 2; i <= len; i++) rank[sa[i]] = rank[sa[i - 1]] + (s[sa[i]] != s[sa[i - 1]]);
                                        ^
0_0_17540953_17219.cpp:9:15: note: candidates are: int rank [100086]
 int sa[maxn], rank[maxn], tmp_sa[maxn], tmp_rank[max


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-12-02 09:55:44, Gzip enabled