0_0_30400959_17095.cpp: In function 'void qsort()':
0_0_30400959_17095.cpp:70:5: error: reference to 'rank' is ambiguous
c[rank[i]]++;
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:74:8: error: reference to 'rank' is ambiguous
sa[c[rank[tp[i]]]--] = tp[i];
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp: In function 'void suffixsort()':
0_0_30400959_17095.cpp:81:3: error: reference to 'rank' is ambiguous
rank[i] = str[i];
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:94:11: error: reference to 'rank' is ambiguous
swap(tp,rank);
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:95:3: error: reference to 'rank' is ambiguous
rank[sa[1]] = p = 1;
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:97:4: error: reference to 'rank' is ambiguous
rank[sa[i]] = (tp[sa[i - 1]] == tp[sa[i]] && tp[sa[i - 1] + k] == tp[sa[i] + k]) ? p : ++p;
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp: In function 'void get_height()':
0_0_30400959_17095.cpp:114:10: error: reference to 'rank' is ambiguous
height[rank[i]] = cur = cur + solve(i + cur,sa[rank[i] + 1] + cur);
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:114:50: error: reference to 'rank' is ambiguous
height[rank[i]] = cur = cur + solve(i + cur,sa[rank[i] + 1] + cur);
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp: In function 'int main()':
0_0_30400959_17095.cpp:177:15: error: reference to 'rank' is ambiguous
if (height[rank[l] - 1] < r - l + 1)
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:178:10: error: reference to 'rank' is ambiguous
tl = rank[l];
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_30400959_17095.cpp:180:14: error: reference to 'rank' is ambiguous
tl = tdl(rank[l] - 1,r - l + 1);
^
0_0_30400959_17095.cpp:7:22: note: candidates are: int rank [101000]
int c[MAXN],sa[MAXN],rank[MAXN],height[MAXN],tp[MAXN],p[MAXN][30],uni[30];
^
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_30400959_17095.
|