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

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:20:32: error: no matching function for call to ‘std::deque<long long int>::pop_back(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
20 | stack.pop_back(stack.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: candidate: ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: candidate expects 0 arguments, 1 provided