0_0_15719192_10197.cpp: In function 'void calc_height()':
0_0_15719192_10197.cpp:45:30: error: reference to 'rank' is ambiguous
for(int i = 0; i < n; ++ i) rank[sa[i]] = i;
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp:48:7: error: reference to 'rank' is ambiguous
if (rank[i]) {
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp:50:30: error: reference to 'rank' is ambiguous
for( ; a[i + cur] == a[sa[rank[i] - 1] + cur]; ++ cur);
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp:51:11: error: reference to 'rank' is ambiguous
height[rank[i]] = cur;
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp: In function 'void solve()':
0_0_15719192_10197.cpp:91:23: error: reference to 'rank' is ambiguous
len[cur] = getLCP(rank[stack[tot]], i);
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp:93:17: error: reference to 'rank' is ambiguous
if (getLCP(rank[stack[tot - 1]], i) == len[cur]) {
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp:111:25: error: reference to 'rank' is ambiguous
int tmpLen = getLCP(rank[stack[tot]], i);
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15719192_10197.cpp:113:17: error: reference to 'rank' is ambiguous
if (getLCP(rank[stack[tot - 1]], i) == tmpLen) {
^
0_0_15719192_10197.cpp:13:16: note: candidates are: int rank [100010]
int height[N], rank[N], sa[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++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_15719192_10197.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|