Problem brick
User PyAce
Submission Time 2026-01-15 16:08:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:9:2: error: ‘stack’ was not declared in this scope
9 | stack<int> AVec;
| ^~~~~
brick.cpp:3:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
2 | #include <vector>
+++ |+#include <stack>
3 | using namespace std;
brick.cpp:4:13: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
brick.cpp:9:8: note: in expansion of macro ‘int’
9 | stack<int> AVec;
| ^~~
brick.cpp:14:3: error: ‘AVec’ was not declared in this scope
14 | AVec.push_back(temp);
| ^~~~