Problem brick
User Red123
Submission Time 2026-03-05 21:26:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:20:11: 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 | stack.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 brick.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: declared here
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~