Problem | wrongreverse |
---|---|
User | Usu |
Submission Time | 2025-07-17 13:18:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:17:9: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = int; _Alloc = std::allocator<int>]’
17 | array.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 wrongreverse.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: declared here
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
wrongreverse.cpp:18:9: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
18 | array.pop_back;
| ~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from wrongrev