Borderou de evaluare (job #1962705)
Utilizator | Data | 11 aprilie 2017 23:37:03 | |
---|---|---|---|
Problema | Secventa | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Solve()’:
user.cpp:35:43: error: reference to ‘begin’ is ambiguous
begin=Q.front();
^
user.cpp:8:9: note: candidates are: int begin
int n,k,begin,end,maxim;
^
In file included from /usr/include/c++/4.8/vector:66:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/range_access.h:87:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
begin(_Tp (&__arr)[_Nm])
^
/usr/include/c++/4.8/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
begin(const _Container& __cont) -> decltype(__cont.begin())
^
/usr/include/c++/4.8/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
begin(_Container& __cont) -> decltype(__cont.begin())
^
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:2:
/usr/include/c++/4.8/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
begin(initializer_list<_Tp> __ils) noexcept
^
user.cpp:36:43: error: reference to ‘end’ is ambiguous
end=Q.back();
^
user.cpp:8:15: note: candidates are: int end
int n,k,begin,end,maxim;
^
In file included from /usr/include/c++/4.8/vector:66:0,
from user.cpp:2:
/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:2:
/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: In function ‘void Write()’:
user.cpp:45:23: error: reference to ‘begin’ is ambiguous
printf("%d %d %d",begin,end,maxim);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !