Borderou de evaluare (job #1816858)

Utilizator silkMarin Dragos silk Data 27 noiembrie 2016 00:59:26
Problema Subsecvente2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:1: error: reference to ‘hash’ is ambiguous hash u[NMax+1]; ^ user.cpp:7:8: note: candidates are: struct hash struct hash{ int x,y,z; }; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:8:1: error: ‘hash’ does not name a type hash u[NMax+1]; ^ user.cpp:9:1: error: reference to ‘hash’ is ambiguous hash v[NMax+1]; ^ user.cpp:7:8: note: candidates are: struct hash struct hash{ int x,y,z; }; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:9:1: error: ‘hash’ does not name a type hash v[NMax+1]; ^ user.cpp:22:16: error: reference to ‘hash’ is ambiguous bool cmp(const hash A, const hash B) ^ user.cpp:7:8: note: candidates are: struct hash struct hash{ int x,y,z; }; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash;

Ceva nu functioneaza?