0_0_23729907_22536.cpp: In function 'int main()':
0_0_23729907_22536.cpp:23:20: error: reference to 'hash' is ambiguous
For(i,1,n) hash[i] = hash[i-1] * 26 + s[i] - 'a';
^
0_0_23729907_22536.cpp:10:10: note: candidates are: long long unsigned int hash [230005]
ull h[N],hash[N],_pow[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_23729907_22536.cpp:4:
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_23729907_22536.cpp:23:30: error: reference to 'hash' is ambiguous
For(i,1,n) hash[i] = hash[i-1] * 26 + s[i] - 'a';
^
0_0_23729907_22536.cpp:10:10: note: candidates are: long long unsigned int hash [230005]
ull h[N],hash[N],_pow[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_23729907_22536.cpp:4:
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_23729907_22536.cpp:30:45: error: reference to 'hash' is ambiguous
if( Hash(1,n-i,h) == Hash(i+1,n,hash) ){
^
0_0_23729907_22536.cpp:10:10: note: candidates are: long long unsigned int hash [230005]
ull h[N],hash[N],_pow[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_23729907_22536.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|