Borderou de evaluare (job #1495807)

Utilizator danalex97Dan H Alexandru danalex97 Data 3 octombrie 2015 17:35:47
Problema TwoSets Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:49:25: error: reference to ‘hash’ is ambiguous bool operator() (const hash& a,const hash& b) const ^ user.cpp:34:8: note: candidates are: struct hash struct hash { ^ 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/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:49:25: error: ‘hash’ does not name a type bool operator() (const hash& a,const hash& b) const ^ user.cpp:49:31: error: ISO C++ forbids declaration of ‘a’ with no type [-fpermissive] bool operator() (const hash& a,const hash& b) const ^ user.cpp:49:39: error: reference to ‘hash’ is ambiguous bool operator() (const hash& a,const hash& b) const ^ user.cpp:34:8: note: candidates are: struct hash struct hash { ^ 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/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:49:39: error: ‘hash’ does not name a type bool operator() (const hash& a,const hash& b) const ^ user.cpp:49:45: error: ISO C++ forbids declaration of ‘b’ with no type [-fpermissive] bool operator() (const hash& a,const hash& b) const ^ user.cpp: In member function ‘bool mycmp::operator()(const int&, const int&) const’: user.cpp:52:11: error: request for member ‘x’ in ‘a’, which is of non-class type ‘const int’ if ( a.x[i] != b.x[i] ) ^

Ceva nu functioneaza?