2_30942_2455320_11688.cpp: In function 'void SA(int*, int*, int, int)':
2_30942_2455320_11688.cpp:40:5: error: reference to 'rank' is ambiguous
rank=x;
^
2_30942_2455320_11688.cpp:18:6: note: candidates are: int* rank
int *rank,r[N],sa[N],height[N],wa[N],wb[N],wm[N];
^
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from 4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from 4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from 4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 2_30942_2455320_11688.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
2_30942_2455320_11688.cpp: In function 'void Height(int*, int*, int)':
2_30942_2455320_11688.cpp:43:36: error: reference to 'rank' is ambiguous
for(int i=0,j=0,k=0;i<n;height[rank[i++]]=k)
^
2_30942_2455320_11688.cpp:18:6: note: candidates are: int* rank
int *rank,r[N],sa[N],height[N],wa[N],wb[N],wm[N];
^
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from 4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from 4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from 4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 2_30942_2455320_11688.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
2_30942_2455320_11688.cpp:44:22: error: reference to 'rank' is ambiguous
for(k?--k:0,j=sa[rank[i]-1];r[i+k] == r[j+k];++k);
^
2_30942_2455320_11688.cpp:18:6: note: candidates are: int* rank
int *rank,r[N],sa[N],height[N],wa[N],wb[N],wm[N];
^
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from 4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from 4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from 4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 2_30942_2455320_11688.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
2_30942_2455320_11688.cpp: In function 'int main()':
2_30942_2455320_11688.cpp:145:29: error: reference to 'rank' is ambiguous
int L = cal_L(1,rank[pos[k]],len[k]);
^
2_30942_2455320_11688.cpp:18:6: note: candidates are: int* rank
int *rank,r[N],sa[N],height[N],wa[N],wb[N],wm[N];
^
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from 4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from 4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from 4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 2_30942_2455320_11688.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
2_30942_2455320_11688.cpp:146:27: error: reference to 'rank' is ambiguous
int R = cal_R(rank[pos[k]]+1,n,len[k]);
^
2_30942_2455320_11688.cpp:18:6: note: candidates are: int* rank
int *rank,r[N],sa[N],height[N],wa[N],wb[N],wm[N];
^
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from 4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from 4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from 4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from 4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from 4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 2_30942_2455320_11688.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^