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

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:8:26: error: conversion from ‘int’ to non-scalar type ‘std::stack<int>’ requested
8 | stack<int> brickStack = 0;
| ^
brick.cpp:19:31: error: ‘brickHeights’ was not declared in this scope
19 | while (brickStack.top() <= brickHeights[i] && !brickStack.empty()){
| ^~~~~~~~~~~~
brick.cpp:22:20: error: ‘brickHeights’ was not declared in this scope
22 | brickStack.push(brickHeights[i]);
| ^~~~~~~~~~~~