| Problem | brick |
|---|---|
| User | CENRUI |
| Submission Time | 2026-11-14 19:27:30 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:25:5: error: ‘stack’ was not declared in this scope
25 | stack<int> s;
| ^~~~~
brick.cpp:13:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
12 | #include <set>
+++ |+#include <stack>
13 | #include <string>
brick.cpp:25:11: error: expected primary-expression before ‘int’
25 | stack<int> s;
| ^~~
brick.cpp:31:17: error: ‘s’ was not declared in this scope
31 | while (!s.empty() && s.top() <= x) {
| ^
brick.cpp:36:9: error: ‘s’ was not declared in this scope
36 | s.push(x);
| ^
brick.cpp:40:13: error: ‘s’ was not declared in this scope
40 | while (!s.empty()) {
| ^