prog.cpp: In function ‘int LCP(int, int)’:
prog.cpp:66:6: error: reference to ‘rank’ is ambiguous
if(rank[i][u]==rank[i][v]){
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp:66:18: error: reference to ‘rank’ is ambiguous
if(rank[i][u]==rank[i][v]){
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp: In function ‘bool equal(int, int)’:
prog.cpp:76:5: error: reference to ‘rank’ is ambiguous
if(rank[stp-1][u]!=rank[stp-1][v]) return false;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp:76:21: error: reference to ‘rank’ is ambiguous
if(rank[stp-1][u]!=rank[stp-1][v]) return false;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp:77:23: error: reference to ‘rank’ is ambiguous
int a = u + mv < n ? rank[stp-1][u+mv] : -1;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp:78:23: error: reference to ‘rank’ is ambiguous
int b = v + mv < n ? rank[stp-1][v+mv] : -1;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp: In function ‘void upd()’:
prog.cpp:89:4: error: reference to ‘rank’ is ambiguous
rank[stp][suffix[i]]=++rnk;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp:92:8: error: reference to ‘rank’ is ambiguous
else rank[stp][suffix[i]]=rnk;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp: In function ‘void srt()’:
prog.cpp:101:13: error: reference to ‘rank’ is ambiguous
int idx = rank[ stp - 1 ][ n-i-1 ];
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp:109:9: error: reference to ‘rank’ is ambiguous
idx = rank[stp-1][idx];
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
prog.cpp: In function ‘int main()’:
prog.cpp:142:32: error: reference to ‘rank’ is ambiguous
for(i = 0;i<=stp; i++) rank[ i ][ n ] = -1;
^
prog.cpp:61:25: note: candidates are: int rank [30][200005]
int sum[MAXN],cnt[MAXN],rank[MAXL][MAXN];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/utility:70,
from /usr/include/c++/4.8/algorithm:60,
from prog.cpp:8:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^