0_0_13940428_26352.cpp: In function 'void SA()':
0_0_13940428_26352.cpp:10:25: error: reference to 'rank' is ambiguous
for(int i=1;i<=n;i++)c[rank[i]=a[i]]++;
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp:19:26: error: reference to 'rank' is ambiguous
for(int i=1;i<=n;i++)c[rank[y[i]]]++;
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp:21:26: error: reference to 'rank' is ambiguous
for(int i=n;i;i--)sa[c[rank[y[i]]]--]=y[i];
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp:22:8: error: reference to 'rank' is ambiguous
swap(rank,y);rank[sa[1]]=p=1;
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp:22:16: error: reference to 'rank' is ambiguous
swap(rank,y);rank[sa[1]]=p=1;
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp:23:24: error: reference to 'rank' is ambiguous
for(int i=2;i<=n;i++)rank[sa[i]]=y[sa[i]]==y[sa[i-1]]&&y[sa[i]+k]==y[sa[i-1]+k]?p:++p;
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp: In function 'void cal_Height()':
0_0_13940428_26352.cpp:32:21: error: reference to 'rank' is ambiguous
for(;a[i+j]==a[sa[rank[i]-1]+j];j++);
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_13940428_26352.cpp:33:10: error: reference to 'rank' is ambiguous
height[rank[i]]=j;
^
0_0_13940428_26352.cpp:5:26: note: candidates are: int rank [220010]
int sa[220010],a[220010],rank[220010],y[220010],c[220010],height[220010],m,n,p,ans;
^
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_13940428_26352.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|