foo.cpp: In function 'void cha(int, int)':
foo.cpp:41:5: error: reference to 'hash' is ambiguous
if(hash[la])
^
foo.cpp:17:5: note: candidates are: int hash [10001]
int hash[10001]={0};
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:41,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:49:3: error: reference to 'hash' is ambiguous
hash[la]=1;
^
foo.cpp:17:5: note: candidates are: int hash [10001]
int hash[10001]={0};
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:41,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:58:3: error: reference to 'hash' is ambiguous
hash[dui[1].zhi]=0;
^
foo.cpp:17:5: note: candidates are: int hash [10001]
int hash[10001]={0};
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:41,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:59:3: error: reference to 'hash' is ambiguous
hash[la]=1;
^
foo.cpp:17:5: note: candidates are: int hash [10001]
int hash[10001]={0};
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:41,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^