0_0_13532589_9251.cpp: In function 'void makesa()':
0_0_13532589_9251.cpp:15:32: error: reference to 'rank' is ambiguous
for (int i = 1; i <= n; i ++) rank[i] = a[i];
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:20:17: error: expected primary-expression before ')' token
pa[j] = (node) {rank[j], rank[k], j};
^
0_0_13532589_9251.cpp:26:19: error: reference to 'rank' is ambiguous
flag = flag || rank[pa[j].h] != tmp;
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:27:4: error: reference to 'rank' is ambiguous
rank[pa[j].h] = tmp;
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:31:35: error: reference to 'rank' is ambiguous
for (int i = 1; i <= n; i ++) sa[rank[i]] = i;
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp: In function 'void makeheight()':
0_0_13532589_9251.cpp:36:7: error: reference to 'rank' is ambiguous
if (rank[i] != 1) {
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:37:15: error: reference to 'rank' is ambiguous
int j = sa[rank[i] - 1];
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:39:11: error: reference to 'rank' is ambiguous
height[rank[i]] = k;
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp: In function 'int lcp(int, int)':
0_0_13532589_9251.cpp:61:6: error: reference to 'rank' is ambiguous
if (rank[x] > rank[y]) swap(x, y);
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:61:16: error: reference to 'rank' is ambiguous
if (rank[x] > rank[y]) swap(x, y);
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:62:13: error: reference to 'rank' is ambiguous
return rmq(rank[x] + 1, rank[y]);
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.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_13532589_9251.cpp:62:26: error: reference to 'rank' is ambiguous
return rmq(rank[x] + 1, rank[y]);
^
0_0_13532589_9251.cpp:10:18: note: candidates are: int rank [100005]
int n, sa[maxn], rank[maxn], height[maxn];
^
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_13532589_9251.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|