Borderou de evaluare (job #1242850)

Utilizator beny10Bia Beniamin beny10 Data 15 octombrie 2014 09:29:58
Problema Dezastru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void calcularePos(int, int, float)’: user.cpp:47:8: error: reference to ‘end’ is ambiguous if(end) ^ user.cpp:42:6: note: candidates are: bool end bool end=false; ^ In file included from /usr/include/c++/4.8/vector:66:0, from user.cpp:1: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&) end(const _Container& __cont) -> decltype(__cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&) end(_Container& __cont) -> decltype(__cont.end()) ^ In file included from /usr/include/c++/4.8/bits/stl_vector.h:63:0, from /usr/include/c++/4.8/vector:64, from user.cpp:1: /usr/include/c++/4.8/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> __ils) noexcept ^ user.cpp:51:9: error: reference to ‘end’ is ambiguous end=true; ^ user.cpp:42:6: note: candidates are: bool end bool end=false; ^ In file included from /usr/include/c++/4.8/vector:66:0, from user.cpp:1: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&) end(const _Container& __cont) -> decltype(__cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&) end(_Container& __cont) -> decltype(__cont.end()) ^ In file included from /usr/include/c++/4.8/bits/stl_vector.h:63:0, from /usr/include/c++/4.8/vector:64, from user.cpp:1: /usr/include/c++/4.8/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> __ils) noexcept ^

Ceva nu functioneaza?