/in/foo.cc: In function 'void Get_Rank()':
/in/foo.cc:21:11: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[s[i]]++;
^
/in/foo.cc:25:30: warning: array subscript has type 'char' [-Wchar-subscripts]
sa[ sum[s[i]-1]+ ++cnt[s[i]] ]=i;
^
/in/foo.cc:30:3: error: reference to 'rank' is ambiguous
rank[sa[i]]=tot;
^~~~
/in/foo.cc:9: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:4:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:19:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
/in/foo.cc: In function 'void Prefix_Doubling()':
/in/foo.cc:55:9: error: reference to 'rank' is ambiguous
X[i]=rank[i];
^~~~
/in/foo.cc:9: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:4:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:56:17: error: reference to 'rank' is ambiguous
Y[i]=i+j>n?0:rank[i+j];
^~~~
/in/foo.cc:9: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:4:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:65:4: error: reference to 'rank' is ambiguous
rank[sa[i]]=tot;
^~~~
/in/foo.cc:9: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:4:
/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:85:11: error: reference to 'rank' is ambiguous
else if(rank[l]<rank[n+1-r]) putchar(s[l++]);
^~~~
/in/foo.cc:9: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:4:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:85:19: error: reference to 'rank' is ambiguous
else if(rank[l]<rank[n+1-r]) putchar(s[l++]);
^~~~
/in/foo.cc:9: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:4:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~