Borderou de evaluare (job #1264727)

Utilizator florin.elfusFlorin Elfus florin.elfus Data 16 noiembrie 2014 02:56:49
Problema Mst Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:56:21: error: reference to ‘function’ is ambiguous class edge : public function ^ user.cpp:14:7: note: candidates are: class function class function ^ In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0, from /usr/include/c++/4.8/algorithm:62, from user.cpp:8: /usr/include/c++/4.8/functional:1866:11: note: template<class _Signature> class std::function class function; ^ user.cpp: In constructor ‘edge::edge(int, int, double, double, double)’: user.cpp:62:68: error: class ‘edge’ does not have any field named ‘function’ edge(int x, int y, double a, double b, double c) : u(x), v(y), function(a, b, c) {} ^ user.cpp: In member function ‘bool edge::operator<(const edge&) const’: user.cpp:68:57: error: ‘eval’ was not declared in this scope bool operator < (const edge& e) const { return eval() < e.eval(); } ^ user.cpp:68:63: error: ‘const class edge’ has no member named ‘eval’ bool operator < (const edge& e) const { return eval() < e.eval(); } ^ user.cpp: At global scope: user.cpp:71:8: error: reference to ‘function’ is ambiguous double function::x; ^ user.cpp:14:7: note: candidates are: class function class function ^ In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0, from /usr/include/c++/4.8/algorithm:62, from user.cpp:8: /usr/include/c++/4.8/functional:1866:11: note: template<class _Signature> class std::function class function; ^ user.cpp:71:8: error: reference to ‘function’ is ambiguous double function::x; ^ user.cpp:14:7: note: candidates are: class function class function ^ In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0, from /usr/include/c++/4.8/algorithm:62, from user.cpp:8: /usr/include/c++/4.8/functional:1866:11: note: template<class _Signature> class std::function class function; ^ user.cpp: In function ‘void MST(double, double)’: user.cpp:110:5: error: ‘set’ is not a member of ‘edge’

Ceva nu functioneaza?