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_30901170_1443.cpp: In function 'void rsort(int)':
0_0_30901170_1443.cpp:49:23: error: reference to 'rank' is ambiguous
     fo(i,1,len) ++cnt[rank[tp[i]]];
                       ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:51:25: error: reference to 'rank' is ambiguous
     fod(i,len,1) sa[cnt[rank[tp[i]]]--]=tp[i]; 
                         ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp: In function 'void get_sa(int)':
0_0_30901170_1443.cpp:57:18: error: reference to 'rank' is ambiguous
     fo(i,1,len) {rank[i]=a[i]; tp[i]=i;} 
                  ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:64:14: error: reference to 'rank' is ambiguous
         swap(rank,tp);
              ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:65:9: error: reference to 'rank' is ambiguous
         rank[sa[1]]=p=1;
         ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:66:21: error: reference to 'rank' is ambiguous
         fo(i,2,len) rank[sa[i]]=check(tp,sa[i],sa[i-1],w)?p:++p;  
                     ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:68:39: error: reference to 'rank' is ambiguous
     for (int i=1,k=0,j=0;i<=len;heigh[rank[i++]]=k)  
                                       ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:69:28: error: reference to 'rank' is ambiguous
         for(k=k?k-1:k,j=sa[rank[i]-1];a[i+k]==a[j+k];++k);   
                            ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp: In function 'void work(int)':
0_0_30901170_1443.cpp:72:8: error: reference to 'rank' is ambiguous
  int l=rank[x]-1,r=rank[x]+1;
        ^
0_0_30901170_1443.cpp:21:20: note: candidates are: int rank [200200]
 int heigh[N],sa[N],rank[N],tp[N],cnt[N],len,t,qwq,K,T; 
                    ^
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_30901170_1443.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_30901170_1443.cpp:84:7: error: 'r' was not declared in this scope
   if (r>len) break;
       ^
0_0_30901170_1443.cpp:85:13: error: 'r' was not declared in this scope
   if (heigh[r]<K) break;
             ^
0_0_30901170_1443.cpp:86:21: error: 'r' was not declared in this scope
   qaq=MIN(qaq,heigh[r]);
                     ^
0_0_30901170_1443.cpp:9:25: note: in definition of macro 'MIN'
 #define MIN(a,b) (((a)<(b)?(a):(b)))
                         ^


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-02 14:44:49, Gzip enabled