0_0_21606592_8236.cpp: In function 'bool cmp(int, int, int)':
0_0_21606592_8236.cpp:16:9: error: reference to 'rank' is ambiguous
return rank[x]==rank[y]&&rank[x+len]==rank[y+len];
^
0_0_21606592_8236.cpp:8:13: note: candidates are: int rank [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_21606592_8236.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_21606592_8236.cpp:16:18: error: reference to 'rank' is ambiguous
return rank[x]==rank[y]&&rank[x+len]==rank[y+len];
^
0_0_21606592_8236.cpp:8:13: note: candidates are: int rank [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_21606592_8236.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_21606592_8236.cpp:16:27: error: reference to 'rank' is ambiguous
return rank[x]==rank[y]&&rank[x+len]==rank[y+len];
^
0_0_21606592_8236.cpp:8:13: note: candidates are: int rank [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_21606592_8236.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_21606592_8236.cpp:16:40: error: reference to 'rank' is ambiguous
return rank[x]==rank[y]&&rank[x+len]==rank[y+len];
^
0_0_21606592_8236.cpp:8:13: note: candidates are: int rank [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_21606592_8236.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_21606592_8236.cpp: In function 'void getSA()':
0_0_21606592_8236.cpp:22:20: error: reference to 'hash' is ambiguous
for(i=0;i<n;i++) hash[str[i]-'a']++;
^
0_0_21606592_8236.cpp:8:32: note: candidates are: int hash [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21606592_8236.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21606592_8236.cpp:23:29: error: reference to 'hash' is ambiguous
for(i=0,cnt=-1;i<S;i++) if(hash[i]) tr[i]=++cnt;
^
0_0_21606592_8236.cpp:8:32: note: candidates are: int hash [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21606592_8236.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21606592_8236.cpp:24:20: error: reference to 'hash' is ambiguous
for(i=1;i<S;i++) hash[i]+=hash[i-1];
^
0_0_21606592_8236.cpp:8:32: note: candidates are: int hash [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21606592_8236.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21606592_8236.cpp:24:29: error: reference to 'hash' is ambiguous
for(i=1;i<S;i++) hash[i]+=hash[i-1];
^
0_0_21606592_8236.cpp:8:32: note: candidates are: int hash [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21606592_8236.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21606592_8236.cpp:25:20: error: reference to 'rank' is ambiguous
for(i=0;i<n;i++) rank[i]=tr[str[i]-'a'],sa[--hash[str[i]-'a']]=i;
^
0_0_21606592_8236.cpp:8:13: note: candidates are: int rank [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[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++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_21606592_8236.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_21606592_8236.cpp:25:48: error: reference to 'hash' is ambiguous
for(i=0;i<n;i++) rank[i]=tr[str[i]-'a'],sa[--hash[str[i]-'a']]=i;
^
0_0_21606592_8236.cpp:8:32: note: candidates are: int hash [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21606592_8236.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21606592_8236.cpp:28:10: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof(int)*n);
^
0_0_21606592_8236.cpp:8:32: note: candidates are: int hash [300010]
int n,sa[N],rank[N],h[N],tr[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from D:/HDOJ/Compile
|