/in/foo.cc: In function 'void get_sa(int, int)':
/in/foo.cc:14:23: error: reference to 'rank' is ambiguous
for(i=1;i<=n;i++) rank[i]=a[i];
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:17:29: error: reference to 'rank' is ambiguous
for(i=1;i<=n;i++) Rsort[rank[i]]++;
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:19:32: error: reference to 'rank' is ambiguous
for(i=n;i>=1;i--) sa[Rsort[rank[i]]--]=i;
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:29:33: error: reference to 'rank' is ambiguous
for(i=1;i<=n;i++) wr[i]=rank[y[i]];
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:36:19: error: reference to 'rank' is ambiguous
memcpy(wr,rank,sizeof(wr));
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:37:13: error: reference to 'rank' is ambiguous
p=1;rank[sa[1]]=1;
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:41:13: error: reference to 'rank' is ambiguous
rank[sa[i]]=p;
^~~~
/in/foo.cc:6:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000],y[210000],wr[210000];
^~~~
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/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~