0_0_17131871_21790.cpp: In function 'int main()':
0_0_17131871_21790.cpp:42:22: error: reference to 'hash' is ambiguous
if(where=hash[data_input])//a鎯呭喌
^
0_0_17131871_21790.cpp:16:14: note: candidates are: std::map<int, int> hash
map<int,int> hash;//鏌愭暟瀛楀瓨鍦ㄥ摢涓湴鏂
^
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_17131871_21790.cpp:4:
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_17131871_21790.cpp:58:19: error: reference to 'hash' is ambiguous
hash[data_input]=where;
^
0_0_17131871_21790.cpp:16:14: note: candidates are: std::map<int, int> hash
map<int,int> hash;//鏌愭暟瀛楀瓨鍦ㄥ摢涓湴鏂
^
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_17131871_21790.cpp:4:
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_17131871_21790.cpp:64:19: error: reference to 'hash' is ambiguous
hash[use.data]=0;//鍒犻櫎鏁版嵁
^
0_0_17131871_21790.cpp:16:14: note: candidates are: std::map<int, int> hash
map<int,int> hash;//鏌愭暟瀛楀瓨鍦ㄥ摢涓湴鏂
^
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_17131871_21790.cpp:4:
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_17131871_21790.cpp:71:19: error: reference to 'hash' is ambiguous
hash[data_input]=where;
^
0_0_17131871_21790.cpp:16:14: note: candidates are: std::map<int, int> hash
map<int,int> hash;//鏌愭暟瀛楀瓨鍦ㄥ摢涓湴鏂
^
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_17131871_21790.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|