foo.cpp: In function 'void init()':
foo.cpp:84:9: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof (hash));
^
foo.cpp:12:6: note: candidates are: bool hash [362980]
bool hash[state_num];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/basic_string.h:3068:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/string:52,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/locale_classes.h:40,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/ios_base.h:41,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:42,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:84:24: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof (hash));
^
foo.cpp:12:6: note: candidates are: bool hash [362980]
bool hash[state_num];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/basic_string.h:3068:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/string:52,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/locale_classes.h:40,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/ios_base.h:41,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:42,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:91:2: error: reference to 'hash' is ambiguous
hash[heap[0].rank]=1;pre[heap[0].rank] = 0;
^
foo.cpp:12:6: note: candidates are: bool hash [362980]
bool hash[state_num];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/basic_string.h:3068:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/string:52,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/locale_classes.h:40,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/ios_base.h:41,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:42,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp: In function 'int search()':
foo.cpp:125:9: error: reference to 'hash' is ambiguous
if (!hash[temp.rank])
^
foo.cpp:12:6: note: candidates are: bool hash [362980]
bool hash[state_num];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/basic_string.h:3068:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/string:52,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/locale_classes.h:40,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/ios_base.h:41,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:42,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::has