0_0_30246087_18104.cpp: In function 'void dfs(int, int)':
0_0_30246087_18104.cpp:133:39: error: reference to 'hash' is ambiguous
T[v] = update (T[u] , 1 , m , hash(w) , w);
^
0_0_30246087_18104.cpp:62:5: note: candidates are: int hash(int)
int hash (int y) {
^
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_30246087_18104.cpp:22:
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_30246087_18104.cpp: In function 'int main()':
0_0_30246087_18104.cpp:187:1: error: expected primary-expression before '%' token
0_0_30246087_18104.cpp:187:1: error: expected primary-expression at end of input
0_0_30246087_18104.cpp:187:1: error: expected '}' at end of input
0_0_30246087_18104.cpp:187:1: error: expected '}' at end of input
0_0_30246087_18104.cpp:187:1: error: expected '}' at end of input
0_0_30246087_18104.cpp:187:1: error: expected '}' at end of input
|