Problem brick
User yongteckrice
Submission Time 2023-02-11 17:02:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:18:24: error: expected ‘)’ before ‘!’ token
18 | while (stack.empty()! || numb > stack.top())
| ~ ^
| )
brick.cpp:18:26: error: expected primary-expression before ‘||’ token
18 | while (stack.empty()! || numb > stack.top())
| ^~
brick.cpp:26:21: error: expected ‘)’ before ‘!’ token
26 | while(stack.empty()!)
| ~ ^
| )
brick.cpp:26:22: error: expected primary-expression before ‘)’ token
26 | while(stack.empty()!)
| ^