Problem brick
User Emily
Submission Time 2024-04-03 17:36:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int32_t main()’:
brick.cpp:23:12: error: ‘i’ was not declared in this scope
23 | s.push(a[i]);
| ^
brick.cpp: At global scope:
brick.cpp:26:5: error: expected unqualified-id before ‘while’
26 | while (!s.empty()){
| ^~~~~
brick.cpp:31:2: error: expected unqualified-id before ‘return’
31 | return 0;
| ^~~~~~
brick.cpp:32:1: error: expected declaration before ‘}’ token
32 | }
| ^