Borderou de evaluare (job #1042792)

Utilizator raulstoinStoin Raul raulstoin Data 27 noiembrie 2013 18:09:31
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:60:9: error: reference to ‘hash’ is ambiguous use[ hash(n,i) ]=1; ^ user.cpp:42:5: note: candidates are: int hash(long long int, int) int hash(LL x,int 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/bitset:47, 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:67:11: error: reference to ‘hash’ is ambiguous if(!use[hash(n,1)] || !use[hash(n,2)] || !use[hash(n,3)] ) ^ user.cpp:42:5: note: candidates are: int hash(long long int, int) int hash(LL x,int 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/bitset:47, 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:67:30: error: reference to ‘hash’ is ambiguous if(!use[hash(n,1)] || !use[hash(n,2)] || !use[hash(n,3)] ) ^ user.cpp:42:5: note: candidates are: int hash(long long int, int) int hash(LL x,int 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/bitset:47, 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:67:49: error: reference to ‘hash’ is ambiguous if(!use[hash(n,1)] || !use[hash(n,2)] || !use[hash(n,3)] ) ^ user.cpp:42:5: note: candidates are: int hash(long long int, int) int hash(LL x,int 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/bitset:47, from user.cpp:2:

Ceva nu functioneaza?