Problem brick
User rhea61
Submission Time 2023-11-08 14:25:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int32_t main()’:
brick.cpp:12:14: error: ‘i’ was not declared in this scope
12 | s. push(i) ;
| ^
brick.cpp:14:2: error: ‘else’ without a previous ‘if’
14 | else if (height <x)
| ^~~~
brick.cpp:20:10: error: expected ‘;’ before ‘}’ token
20 | return 0
| ^
| ;
21 |
22 | }
| ~