Problem brick
User BlueSpace
Submission Time 2026-11-15 20:50:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:19:5: error: expected ‘}’ before ‘else’
19 | else if (s.top() != x){
| ^~~~
brick.cpp:17:22: note: to match this ‘{’
17 | if (x < s.top()) {
| ^
brick.cpp:25:3: error: expected ‘}’ before ‘else’
25 | else if (s.empty()) {
| ^~~~
brick.cpp:15:19: note: to match this ‘{’
15 | if (!s.empty()) {
| ^