Borderou de evaluare (job #1239378)

Utilizator Sanduleac_VladSanduleac Vllad Alexandru Sanduleac_Vlad Data 8 octombrie 2014 23:19:47
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool verif(long unsigned int)’: user.cpp:16:10: error: reference to ‘hash’ is ambiguous if(h[hash(val)].empty()) ^ user.cpp:11:22: note: candidates are: long unsigned int hash(long unsigned int) inline unsigned long hash(unsigned long val) { ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:19:22: error: reference to ‘hash’ is ambiguous for(i = 0; i < h[hash(val)].size(); i++) ^ user.cpp:11:22: note: candidates are: long unsigned int hash(long unsigned int) inline unsigned long hash(unsigned long val) { ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:20:21: error: reference to ‘hash’ is ambiguous if(val == h[hash(val)][i]) ^ user.cpp:11:22: note: candidates are: long unsigned int hash(long unsigned int) inline unsigned long hash(unsigned long val) { ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘bool put(long unsigned int)’: user.cpp:28:11: error: reference to ‘hash’ is ambiguous h[hash(val)].push_back(val); ^ user.cpp:11:22: note: candidates are: long unsigned int hash(long unsigned int) inline unsigned long hash(unsigned long val) { ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^

Ceva nu functioneaza?