0_0_26217073_14148.cpp: In function 'void gao3()':
0_0_26217073_14148.cpp:43:13: error: reference to 'hash' is ambiguous
int ans=hash[make_pair(x,y)];
^
0_0_26217073_14148.cpp:14:24: note: candidates are: std::map<std::pair<int, int>, int> hash
map<pair<int,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_26217073_14148.cpp:5:
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_26217073_14148.cpp: In function 'int main()':
0_0_26217073_14148.cpp:51:9: error: reference to 'hash' is ambiguous
hash.clear();
^
0_0_26217073_14148.cpp:14:24: note: candidates are: std::map<std::pair<int, int>, int> hash
map<pair<int,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_26217073_14148.cpp:5:
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_26217073_14148.cpp:55:13: error: reference to 'hash' is ambiguous
hash[make_pair(v[i].x,v[i].y)]=v[i].val;
^
0_0_26217073_14148.cpp:14:24: note: candidates are: std::map<std::pair<int, int>, int> hash
map<pair<int,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_26217073_14148.cpp:5:
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_26217073_14148.cpp:74:13: error: expected '}' at end of input
return 0;
^
|