/in/foo.cc: In function 'void psort()':
/in/foo.cc:32:29: error: reference to 'rank' is ambiguous
for(int i=1;i<=n;++i)++cnt[rank[tp[i]]];
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:34:27: error: reference to 'rank' is ambiguous
for(int i=n;i;--i)sa[cnt[rank[tp[i]]]--]=tp[i];
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc: In function 'void suffix()':
/in/foo.cc:38:23: error: reference to 'rank' is ambiguous
for(int i=1;i<=n;++i)rank[i]=s[i],tp[i]=i;
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:44:16: error: reference to 'rank' is ambiguous
psort();swap(rank,tp);rank[sa[1]]=p=1;
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:44:25: error: reference to 'rank' is ambiguous
psort();swap(rank,tp);rank[sa[1]]=p=1;
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:45:20: error: reference to 'rank' is ambiguous
for(i=2;i<=n;++i)rank[sa[i]]=(tp[sa[i]]==tp[sa[i-1]]&&tp[sa[i]+w]==tp[sa[i-1]+w])?p:++p;
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:60:6: error: reference to 'rank' is ambiguous
if(rank[i]<rank[n-j+1])
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:60:14: error: reference to 'rank' is ambiguous
if(rank[i]<rank[n-j+1])
^~~~
/in/foo.cc:28:5: note: candidates are: int rank [60005]
int rank[N],sa[N],tp[N],cnt[N];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/bits/stl_algobase.h:64,
from /usr/include/c++/6/bits/stl_tree.h:63,
from /usr/include/c++/6/map:60,
from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~