0_0_21028308_26407.cpp: In function 'void getSG()':
0_0_21028308_26407.cpp:11:10: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof(hash));
^
0_0_21028308_26407.cpp:6:22: note: candidates are: int hash [1010]
int f[MAXN],sg[MAXN],hash[MAXN];//f表示可操作步数的集合
^
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_21028308_26407.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_21028308_26407.cpp:11:24: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof(hash));
^
0_0_21028308_26407.cpp:6:22: note: candidates are: int hash [1010]
int f[MAXN],sg[MAXN],hash[MAXN];//f表示可操作步数的集合
^
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_21028308_26407.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_21028308_26407.cpp:13:4: error: reference to 'hash' is ambiguous
hash[sg[i-f[j]]]=1;//标记当前点可以到达的点
^
0_0_21028308_26407.cpp:6:22: note: candidates are: int hash [1010]
int f[MAXN],sg[MAXN],hash[MAXN];//f表示可操作步数的集合
^
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_21028308_26407.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_21028308_26407.cpp:15:7: error: reference to 'hash' is ambiguous
if(hash[j]==0){
^
0_0_21028308_26407.cpp:6:22: note: candidates are: int hash [1010]
int f[MAXN],sg[MAXN],hash[MAXN];//f表示可操作步数的集合
^
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_21028308_26407.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;
^
|