Borderou de evaluare (job #1043195)

Utilizator AnonymouslegionAnonymous Anonymouslegion Data 28 noiembrie 2013 09:18:21
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cmp(point, point)’: user.cpp:40:11: error: reference to ‘ref’ is ambiguous if(y == ref) ^ user.cpp:35:7: note: candidates are: point ref point ref; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:3: /usr/local/include/c++/4.8.0/functional:493:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>) ref(reference_wrapper<_Tp> __t) noexcept ^ /usr/local/include/c++/4.8.0/functional:485:10: note: template<class _Tp> void std::ref(const _Tp&&) void ref(const _Tp&&) = delete; ^ /usr/local/include/c++/4.8.0/functional:475:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&) ref(_Tp& __t) noexcept ^ user.cpp:42:11: error: reference to ‘ref’ is ambiguous if(x == ref) ^ user.cpp:35:7: note: candidates are: point ref point ref; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:3: /usr/local/include/c++/4.8.0/functional:493:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>) ref(reference_wrapper<_Tp> __t) noexcept ^ /usr/local/include/c++/4.8.0/functional:485:10: note: template<class _Tp> void std::ref(const _Tp&&) void ref(const _Tp&&) = delete; ^ /usr/local/include/c++/4.8.0/functional:475:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&) ref(_Tp& __t) noexcept ^ user.cpp:45:10: error: reference to ‘ref’ is ambiguous if(ccw(ref, x, y) == 0){ ^ user.cpp:35:7: note: candidates are: point ref point ref; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:3: /usr/local/include/c++/4.8.0/functional:493:5: note: template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>) ref(reference_wrapper<_Tp> __t) noexcept ^ /usr/local/include/c++/4.8.0/functional:485:10: note: template<class _Tp> void std::ref(const _Tp&&)

Ceva nu functioneaza?