0_0_28196720_30244.cpp: In function 'int main()':
0_0_28196720_30244.cpp:52:4: error: reference to 'hash' is ambiguous
hash[i]=(hash[i-1]+1ll*mul[i-1]*(s[i]-'a'))%p;
^
0_0_28196720_30244.cpp:9:12: note: candidates are: int hash [110000]
int mul[N],hash[N],tree[N],a[110],n,t,m,l,r;
^
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_28196720_30244.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_28196720_30244.cpp:52:13: error: reference to 'hash' is ambiguous
hash[i]=(hash[i-1]+1ll*mul[i-1]*(s[i]-'a'))%p;
^
0_0_28196720_30244.cpp:9:12: note: candidates are: int hash [110000]
int mul[N],hash[N],tree[N],a[110],n,t,m,l,r;
^
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_28196720_30244.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_28196720_30244.cpp:54:10: error: reference to 'hash' is ambiguous
add(i,hash[i]-hash[i-1]);
^
0_0_28196720_30244.cpp:9:12: note: candidates are: int hash [110000]
int mul[N],hash[N],tree[N],a[110],n,t,m,l,r;
^
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_28196720_30244.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_28196720_30244.cpp:54:18: error: reference to 'hash' is ambiguous
add(i,hash[i]-hash[i-1]);
^
0_0_28196720_30244.cpp:9:12: note: candidates are: int hash [110000]
int mul[N],hash[N],tree[N],a[110],n,t,m,l,r;
^
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_28196720_30244.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;
^
|