0_0_13579276_13061.cpp: In function 'void DFS(int, int, int)':
0_0_13579276_13061.cpp:14:8: error: reference to 'hash' is ambiguous
if(hash[n1][n2]) //如果当前状态已记录,即还回
^
0_0_13579276_13061.cpp:5:16: note: candidates are: int hash [201][201]
int prove = 0, hash[201][201]; //hash[i][j],记录采用s1前i个和s2前j个字符比较了的状态。
^
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_13579276_13061.cpp:1:
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_13579276_13061.cpp:16:5: error: reference to 'hash' is ambiguous
hash[n1][n2] = 1; //记录当前状态
^
0_0_13579276_13061.cpp:5:16: note: candidates are: int hash [201][201]
int prove = 0, hash[201][201]; //hash[i][j],记录采用s1前i个和s2前j个字符比较了的状态。
^
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_13579276_13061.cpp:1:
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_13579276_13061.cpp: In function 'int main()':
0_0_13579276_13061.cpp:37:16: error: reference to 'hash' is ambiguous
memset(hash, 0, sizeof(hash)); //记住要初始化
^
0_0_13579276_13061.cpp:5:16: note: candidates are: int hash [201][201]
int prove = 0, hash[201][201]; //hash[i][j],记录采用s1前i个和s2前j个字符比较了的状态。
^
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_13579276_13061.cpp:1:
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_13579276_13061.cpp:37:32: error: reference to 'hash' is ambiguous
memset(hash, 0, sizeof(hash)); //记住要初始化
^
0_0_13579276_13061.cpp:5:16: note: candidates are: int hash [201][201]
int prove = 0, hash[201][201]; //hash[i][j],记录采用s1前i个和s2前j个字符比较了的状态。
^
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_13579276_13061.cpp:1:
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_13579276_13061.cpp:37:37: error: 'memset' was not declared in this scope
memset(hash, 0, sizeof(hash)); //记住要初始化
^
|