Borderou de evaluare (job #1061075)

Utilizator assa98Andrei Stanciu assa98 Data 19 decembrie 2013 10:17:26
Problema Ograzi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:35:12: error: reference to ‘hash’ is ambiguous H[ hash( v[i].first , v[i].second) ].push_back(i); ^ user.cpp:11:12: note: candidates are: int hash(int, int) inline int hash(int x,int y) { ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:36:12: error: reference to ‘hash’ is ambiguous H[ hash( v[i].first + w , v[i].second) ].push_back(i); ^ user.cpp:11:12: note: candidates are: int hash(int, int) inline int hash(int x,int y) { ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:37:12: error: reference to ‘hash’ is ambiguous H[ hash( v[i].first , v[i].second + h) ].push_back(i); ^ user.cpp:11:12: note: candidates are: int hash(int, int) inline int hash(int x,int y) { ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:38:12: error: reference to ‘hash’ is ambiguous H[ hash( v[i].first + w , v[i].second + h) ].push_back(i); ^ user.cpp:11:12: note: candidates are: int hash(int, int) inline int hash(int x,int y) { ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:45:40: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?