/in/foo.cc: In function 'void get_sa(int, int)':
/in/foo.cc:13:23: error: reference to 'rank' is ambiguous
for(i=1;i<=n;i++) rank[i]=a[i];
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:15:29: error: reference to 'rank' is ambiguous
for(i=1;i<=n;i++) Rsort[rank[i]]++;
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
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:32: error: reference to 'rank' is ambiguous
for(i=n;i>=1;i--) sa[Rsort[rank[i]]--]=i;
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:23:33: error: reference to 'rank' is ambiguous
for(i=1;i<=n;i++) wr[i]=rank[y[i]];
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:28:19: error: reference to 'rank' is ambiguous
memcpy(wr,rank,sizeof(wr));
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
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:13: error: reference to 'rank' is ambiguous
p=1;rank[sa[1]]=1;
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:33:13: error: reference to 'rank' is ambiguous
rank[sa[i]]=p;
^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
int Rsort[210000],rank[210000],sa[210000];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:173,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~