| Problem | brick |
|---|---|
| User | pkdagoat |
| Submission Time | 2026-11-12 16:47:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:12:13: error: expected unqualified-id before ‘new’
12 | int new;
| ^~~
brick.cpp:13:19: error: expected type-specifier before ‘;’ token
13 | cin >> new;
| ^
brick.cpp:15:23: error: expected type-specifier before ‘)’ token
15 | s.push(new);
| ^
brick.cpp:18:29: error: expected type-specifier before ‘)’ token
18 | if(s.top() > new) { //if top of stack is larger than value
| ^
brick.cpp:19:27: error: expected type-specifier before ‘)’ token
19 | s.push(new);
| ^
brick.cpp:22:19: error: invalid use of non-static member function ‘void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
22 | s.pop