Problem pythonlist
User vadar2525
Submission Time 2025-08-17 16:19:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:20:6: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
20 | a.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 pythonlist.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: declared here
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~