Problem leftright
User scse513
Submission Time 2026-11-06 08:58:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp: In function ‘int main()’:
leftright.cpp:19:13: error: ‘l’ was not declared in this scope
19 | l = (d.size() + 1)/2;
| ^
leftright.cpp:22:19: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = int; _Alloc = std::allocator<int>]’
22 | d.pop_front;
| ~~^~~~~~~~~
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:1605:7: note: declared here
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~