0_0_15972563_9102.cpp: In function 'void BFS()':
0_0_15972563_9102.cpp:46:7: error: reference to 'hash' is ambiguous
CLEAR(hash,0);
^
0_0_15972563_9102.cpp:16:33: note: in definition of macro 'CLEAR'
#define CLEAR( a , x ) memset ( a , x , sizeof a )
^
0_0_15972563_9102.cpp:29:5: note: candidates are: int hash [400000]
int hash[maxn],num[9];
^
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_15972563_9102.cpp:4:
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_15972563_9102.cpp:46:7: error: reference to 'hash' is ambiguous
CLEAR(hash,0);
^
0_0_15972563_9102.cpp:16:48: note: in definition of macro 'CLEAR'
#define CLEAR( a , x ) memset ( a , x , sizeof a )
^
0_0_15972563_9102.cpp:29:5: note: candidates are: int hash [400000]
int hash[maxn],num[9];
^
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_15972563_9102.cpp:4:
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_15972563_9102.cpp:72:5: error: reference to 'hash' is ambiguous
if(!hash[ed.val])
^
0_0_15972563_9102.cpp:29:5: note: candidates are: int hash [400000]
int hash[maxn],num[9];
^
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_15972563_9102.cpp:4:
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_15972563_9102.cpp:74:1: error: reference to 'hash' is ambiguous
hash[ed.val]=1;
^
0_0_15972563_9102.cpp:29:5: note: candidates are: int hash [400000]
int hash[maxn],num[9];
^
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_15972563_9102.cpp:4:
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_15972563_9102.cpp: In function 'int main()':
0_0_15972563_9102.cpp:97:4: error: reference to 'hash' is ambiguous
if(hash[Hash(num)]) cout<<path[Hash(num)]<<endl;
^
0_0_15972563_9102.cpp:29:5: note: candidates are: int hash [400000]
int hash[maxn],num[9];
^
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_15972563_9102.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|