0_0_31687617_31736.cpp: In function 'int main()':
0_0_31687617_31736.cpp:78:11: error: reference to 'hash' is ambiguous
int ha=hash(a),hb=hash(b);
^
0_0_31687617_31736.cpp:15:12: note: candidates are: int hash(char*)
inline int hash(char s[])
^
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++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_31687617_31736.cpp:2:
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_31687617_31736.cpp:80:13: error: 'hb' was not declared in this scope
if(!turn[hb]) turn[hb]=++cnt;
^
0_0_31687617_31736.cpp:81:23: error: 'hb' was not declared in this scope
tree(turn[ha],turn[hb]);
^
0_0_31687617_31736.cpp:93:11: error: reference to 'hash' is ambiguous
int ha=hash(a),hb=hash(b);
^
0_0_31687617_31736.cpp:15:12: note: candidates are: int hash(char*)
inline int hash(char s[])
^
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++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_31687617_31736.cpp:2:
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_31687617_31736.cpp:94:30: error: 'hb' was not declared in this scope
int lca=LCA(turn[ha],turn[hb]);
^
|