Problem | brick |
---|---|
User | Dam |
Submission Time | 2023-02-02 17:55:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
In file included from /usr/include/uchar.h:29,
from /usr/include/c++/9/cuchar:53,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:61,
from brick.cpp:1:
brick.cpp: In function ‘int main()’:
brick.cpp:8:26: error: conversion from ‘long int’ to non-scalar type ‘std::stack<int>’ requested
8 | stack<int> brickStack = NULL;
| ^~~~
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]);
| ^~~~~~~~~~~~