0_0_23943353_30611.cpp: In function 'void BFS()':
0_0_23943353_30611.cpp:45:10: error: reference to 'hash' is ambiguous
CLEAR(hash,0);
^
0_0_23943353_30611.cpp:15:33: note: in definition of macro 'CLEAR'
#define CLEAR( a , x ) memset ( a , x , sizeof a )
^
0_0_23943353_30611.cpp:28: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_23943353_30611.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_23943353_30611.cpp:45:10: error: reference to 'hash' is ambiguous
CLEAR(hash,0);
^
0_0_23943353_30611.cpp:15:48: note: in definition of macro 'CLEAR'
#define CLEAR( a , x ) memset ( a , x , sizeof a )
^
0_0_23943353_30611.cpp:28: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_23943353_30611.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_23943353_30611.cpp:71:20: error: reference to 'hash' is ambiguous
if(!hash[ed.val])
^
0_0_23943353_30611.cpp:28: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_23943353_30611.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_23943353_30611.cpp:73:19: error: reference to 'hash' is ambiguous
hash[ed.val]=1;
^
0_0_23943353_30611.cpp:28: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_23943353_30611.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_23943353_30611.cpp: In function 'int main()':
0_0_23943353_30611.cpp:96:12: error: reference to 'hash' is ambiguous
if(hash[Hash(num)]) cout<<path[Hash(num)]<<endl;
^
0_0_23943353_30611.cpp:28: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_23943353_30611.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;
^
|