Problem brick
User aj
Submission Time 2025-01-16 12:53:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:17:34: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘int’)
17 | int height_current=bricks[current_brick];
| ^
brick.cpp: At global scope:
brick.cpp:28:5: error: expected unqualified-id before ‘return’
28 | return 0;
| ^~~~~~
brick.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^