/in/foo.cc: In function 'void Get_Rank()':
/in/foo.cc:29:3: error: reference to 'rank' is ambiguous
rank[sa[i]]=tot;
^~~~
/in/foo.cc:8:21: note: candidates are: int rank [60600]
int X[M],Y[M],sa[M],rank[M];
^~~~
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:18:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
/in/foo.cc: In function 'void Prefix_Doubling()':
/in/foo.cc:54:9: error: reference to 'rank' is ambiguous
X[i]=rank[i];
^~~~
/in/foo.cc:8:21: note: candidates are: int rank [60600]
int X[M],Y[M],sa[M],rank[M];
^~~~
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:55:17: error: reference to 'rank' is ambiguous
Y[i]=i+j>n?0:rank[i+j];
^~~~
/in/foo.cc:8:21: note: candidates are: int rank [60600]
int X[M],Y[M],sa[M],rank[M];
^~~~
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:64:4: error: reference to 'rank' is ambiguous
rank[sa[i]]=tot;
^~~~
/in/foo.cc:8:21: note: candidates are: int rank [60600]
int X[M],Y[M],sa[M],rank[M];
^~~~
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: In function 'int main()':
/in/foo.cc:84:11: error: reference to 'rank' is ambiguous
else if(rank[l]<rank[n+1-r]) putchar(s[l++]);
^~~~
/in/foo.cc:8:21: note: candidates are: int rank [60600]
int X[M],Y[M],sa[M],rank[M];
^~~~
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:84:19: error: reference to 'rank' is ambiguous
else if(rank[l]<rank[n+1-r]) putchar(s[l++]);
^~~~
/in/foo.cc:8:21: note: candidates are: int rank [60600]
int X[M],Y[M],sa[M],rank[M];
^~~~
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
^~~~