Problem leftright
User glog
Submission Time 2023-05-08 17:34:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp: In function ‘int main()’:
leftright.cpp:17:29: error: no matching function for call to ‘std::deque<long long int>::push_front(std::deque<long long int>::iterator)’
17 | a.push_front(a.end());
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from leftright.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1532:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::deque<_Tp, _Alloc>::value_type = long long int]’
1532 | push_front(const value_type& __x)
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1532:36: note: no known conversion for argument 1 from ‘std::deque<long long int>::iterator’ {aka ‘std::_Deque_iterator<long long int, long long int&, long