Borderou de evaluare (job #1456397)

Utilizator petru.cehanCehan Petru petru.cehan Data 30 iunie 2015 15:44:00
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool cmp(punct, punct)’: user.cpp:60:27: error: reference to ‘ref’ is ambiguous return ( CalculUnghi(*ref,A) < CalculUnghi(*ref,B) ) ; ^ user.cpp:57:9: note: candidates are: punct* ref punct * ref = new punct () ; ^ 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:6: /usr/include/c++/4.8/functional:493:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>) ref(reference_wrapper<_Tp> __t) noexcept ^ /usr/include/c++/4.8/functional:485:10: note: template<class _Tp> void std::ref(const _Tp&&) void ref(const _Tp&&) = delete; ^ /usr/include/c++/4.8/functional:475:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&) ref(_Tp& __t) noexcept ^ user.cpp:60:49: error: reference to ‘ref’ is ambiguous return ( CalculUnghi(*ref,A) < CalculUnghi(*ref,B) ) ; ^ user.cpp:57:9: note: candidates are: punct* ref punct * ref = new punct () ; ^ 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:6: /usr/include/c++/4.8/functional:493:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>) ref(reference_wrapper<_Tp> __t) noexcept ^ /usr/include/c++/4.8/functional:485:10: note: template<class _Tp> void std::ref(const _Tp&&) void ref(const _Tp&&) = delete; ^ /usr/include/c++/4.8/functional:475:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&) ref(_Tp& __t) noexcept ^ user.cpp: In function ‘void PolarSorted(std::vector<punct>*)’: user.cpp:86:6: error: reference to ‘ref’ is ambiguous *ref = *min; ^ user.cpp:57:9: note: candidates are: punct* ref punct * ref = new punct () ; ^ 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:6: /usr/include/c++/4.8/functional:493:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>) ref(reference_wrapper<_Tp> __t) noexcept ^

Ceva nu functioneaza?