Problem brick
User Greywind
Submission Time 2026-07-17 15:13:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp:16:1: error: ‘stack’ does not name a type; did you mean ‘obstack’?
16 | stack<int> a;
| ^~~~~
| obstack
brick.cpp: In function ‘int main()’:
brick.cpp:24:16: error: ‘a’ was not declared in this scope
24 | while(!a.empty())
| ^
brick.cpp:35:9: error: ‘a’ was not declared in this scope
35 | a.push(x);
| ^
brick.cpp:37:12: error: ‘a’ was not declared in this scope
37 | while(!a.empty())
| ^