Problem brick
User Aum
Submission Time 2024-03-26 21:53:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int32_t main()’:
brick.cpp:16:17: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
16 | while (arr[i] > stack.top){
| ~~~~~~ ^ ~~~~~~~~~
| | |
| | <unresolved overloaded function type>
| long long int
brick.cpp:17:15: error: expected ‘;’ before ‘}’ token
17 | stack.pop()
| ^
| ;
18 | }
| ~
brick.cpp:19:21: error: expected ‘;’ before ‘}’ token
19 | stack.push(arr[i])
| ^
| ;
20 | }
| ~