0_0_16754677_12576.cpp: In function 'ull ask(int, int)':
0_0_16754677_12576.cpp:25:29: error: reference to 'hash' is ambiguous
ull ask(int x,int y){return hash[y]-hash[x-1]*mi[x-y+1];}
^
0_0_16754677_12576.cpp:8:5: note: candidates are: ull hash [2010]
ull hash[2010],mi[2010];
^
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_16754677_12576.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_16754677_12576.cpp:25:37: error: reference to 'hash' is ambiguous
ull ask(int x,int y){return hash[y]-hash[x-1]*mi[x-y+1];}
^
0_0_16754677_12576.cpp:8:5: note: candidates are: ull hash [2010]
ull hash[2010],mi[2010];
^
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_16754677_12576.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_16754677_12576.cpp: In function 'int main()':
0_0_16754677_12576.cpp:48:3: error: reference to 'hash' is ambiguous
hash[0]='$';
^
0_0_16754677_12576.cpp:8:5: note: candidates are: ull hash [2010]
ull hash[2010],mi[2010];
^
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_16754677_12576.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_16754677_12576.cpp:49:27: error: reference to 'hash' is ambiguous
for (int i=1;i<len;i++) hash[i]=hash[i-1]*10007+s1[i];
^
0_0_16754677_12576.cpp:8:5: note: candidates are: ull hash [2010]
ull hash[2010],mi[2010];
^
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_16754677_12576.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_16754677_12576.cpp:49:35: error: reference to 'hash' is ambiguous
for (int i=1;i<len;i++) hash[i]=hash[i-1]*10007+s1[i];
^
0_0_16754677_12576.cpp:8:5: note: candidates are: ull hash [2010]
ull hash[2010],mi[2010];
^
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_16754677_12576.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;
^
|