Problem brick
User Dam
Submission Time 2023-02-02 17:57:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:18:31: error: ‘brickHeights’ was not declared in this scope
18 | while (brickStack.top() <= brickHeights[i] && !brickStack.empty()){
| ^~~~~~~~~~~~
brick.cpp:21:20: error: ‘brickHeights’ was not declared in this scope
21 | brickStack.push(brickHeights[i]);
| ^~~~~~~~~~~~