0_0_38202453_10776.cpp: In function 'void makesa()':
0_0_38202453_10776.cpp:85:7: error: reference to 'rank' is ambiguous
top[rank[i] = s[i] & 0xff]++;
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:91:12: error: reference to 'rank' is ambiguous
sa[--top[rank[i]]] = i;
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:99:12: error: reference to 'rank' is ambiguous
tmp[top[rank[j]]++] = j;
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:103:8: error: reference to 'rank' is ambiguous
if (rank[tmp[i]] != rank[tmp[i - 1]]
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:103:24: error: reference to 'rank' is ambiguous
if (rank[tmp[i]] != rank[tmp[i - 1]]
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:104:9: error: reference to 'rank' is ambiguous
|| rank[tmp[i] + len] != rank[tmp[i - 1] + len]) {
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:104:31: error: reference to 'rank' is ambiguous
|| rank[tmp[i] + len] != rank[tmp[i - 1] + len]) {
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:109:10: error: reference to 'rank' is ambiguous
memcpy(rank, sa, N * sizeof(int));
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp: In function 'void lcp()':
0_0_38202453_10776.cpp:119:11: error: reference to 'rank' is ambiguous
for (j = rank[height[i = k = 0] = 0]; i < N - 1; i++, k++) {
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:121:27: error: reference to 'rank' is ambiguous
height[j] = (k--), j = rank[sa[j] + 1];
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp: In function 'int work()':
0_0_38202453_10776.cpp:160:24: error: reference to 'rank' is ambiguous
d[i] = data1[lens2 - rank[j]];
^
0_0_38202453_10776.cpp:78:29: note: candidates are: int rank [2010000]
int sa[MAXN], height[MAXN], rank[MAXN], N;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_38202453_10776.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_38202453_10776.cpp:173:24: error: reference to 'rank' is ambiguous
d[i]
|