Problem brick
User Secre
Submission Time 2025-06-17 20:46:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:12:14: error: expected initializer before ‘bricks’
12 | int current bricks[i];
| ^~~~~~
brick.cpp:14:16: error: ‘current’ was not declared in this scope
14 | if(stack[j] <= current) {
| ^~~~~~~
brick.cpp:20:17: error: ‘current’ was not declared in this scope
20 | stack.push_back(current);
| ^~~~~~~
brick.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
brick.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^