Problem brick
User BlueSpace
Submission Time 2026-11-15 19:51:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:20:12: error: no matching function for call to ‘std::stack<int>::pop(int&)’
20 | s.pop(y);
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from brick.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:266:7: note: candidate: ‘void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
266 | pop()
| ^~~
/usr/include/c++/9/bits/stl_stack.h:266:7: note: candidate expects 0 arguments, 1 provided