0_0_20400177_7647.cpp: In function 'void transfer(int, long long int)':
0_0_20400177_7647.cpp:18:8: error: reference to 'hash' is ambiguous
int v=hash(s);
^
0_0_20400177_7647.cpp:15:5: note: candidates are: int hash(int)
int hash(int s) {return (s*233333%maxh+maxh)%maxh;}
^
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_20400177_7647.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_20400177_7647.cpp: In function 'int main()':
0_0_20400177_7647.cpp:51:33: error: reference to 'hash' is ambiguous
state[cur][1].next=first[cur][hash(0)];
^
0_0_20400177_7647.cpp:15:5: note: candidates are: int hash(int)
int hash(int s) {return (s*233333%maxh+maxh)%maxh;}
^
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_20400177_7647.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_20400177_7647.cpp:52:14: error: reference to 'hash' is ambiguous
first[cur][hash(0)]=1;
^
0_0_20400177_7647.cpp:15:5: note: candidates are: int hash(int)
int hash(int s) {return (s*233333%maxh+maxh)%maxh;}
^
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_20400177_7647.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;
^
|