Problem brick
User Helene
Submission Time 2026-01-25 10:58:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:9:5: error: ‘stack’ was not declared in this scope
9 | stack<int>stk;
| ^~~~~
brick.cpp:4:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
3 | #include<algorithm>
+++ |+#include <stack>
4 | using namespace std;
brick.cpp:9:11: error: expected primary-expression before ‘int’
9 | stack<int>stk;
| ^~~
brick.cpp:15:15: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
15 | while(stk.size()>=1){
| ^~~
| std
brick.cpp:22:11: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
22 | while(stk.size()>=1){
| ^~~
| std