Problem brick
User Dam
Submission Time 2023-02-07 20:09:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:23:21: error: ‘class std::stack<int>’ has no member named ‘front’
23 | while (brickStack.front() <= brickHeights[i] && !brickStack.empty()){
| ^~~~~
brick.cpp:30:22: error: ‘class std::stack<int>’ has no member named ‘front’
30 | cout << brickStack.front() << endl;
| ^~~~~