Borderou de evaluare (job #1453332)
Utilizator | Data | 23 iunie 2015 11:57:38 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool check(int)’:
user.cpp:63:12: error: reference to ‘end’ is ambiguous
if(a.x==end.x && a.y==end.y) q=true;
^
user.cpp:43:14: note: candidates are: Point end
Point start, end;
^
In file included from /usr/include/c++/4.8/vector:66:0,
from user.cpp:19:
/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:19:
/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:63:26: error: reference to ‘end’ is ambiguous
if(a.x==end.x && a.y==end.y) q=true;
^
user.cpp:43:14: note: candidates are: Point end
Point start, end;
^
In file included from /usr/include/c++/4.8/vector:66:0,
from user.cpp:19:
/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:19:
/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:55:7: warning: unused variable ‘fx’ [-Wunused-variable]
int fx=Q.front().x;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !