Borderou de evaluare (job #1038815)

Utilizator gener.omerGener Omer gener.omer Data 21 noiembrie 2013 23:41:53
Problema Dtcsu 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:57:12: error: reference to ‘hash’ is ambiguous int p1 = hash(x, 1); ^ user.cpp:35:5: note: candidates are: int hash(long long int, long long int) int hash(long long x, long long k){ ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:58:12: error: reference to ‘hash’ is ambiguous int p2 = hash(x, 2); ^ user.cpp:35:5: note: candidates are: int hash(long long int, long long int) int hash(long long x, long long k){ ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:59:12: error: reference to ‘hash’ is ambiguous int p3 = hash(x, 3); ^ user.cpp:35:5: note: candidates are: int hash(long long int, long long int) int hash(long long x, long long k){ ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash

Ceva nu functioneaza?