Problem | brick |
---|---|
User | mingging1748 |
Submission Time | 2024-10-10 18:20:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:28:5: error: ‘vector’ was not declared in this scope
28 | vector<int> result;
| ^~~~~~
brick.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <stack>
+++ |+#include <vector>
3 |
brick.cpp:28:12: error: expected primary-expression before ‘int’
28 | vector<int> result;
| ^~~
brick.cpp:31:9: error: ‘result’ was not declared in this scope
31 | result.push_back(s.top());
| ^~~~~~
brick.cpp:36:18: error: ‘result’ was not declared in this scope
36 | for (int i = result.size() - 1; i >= 0; i--) {
| ^~~~~~