Problem | pythonlist |
---|---|
User | JulianN |
Submission Time | 2025-08-20 16:29:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:8:4: error: ‘stack’ was not declared in this scope
8 | stack<int> p;
| ^~~~~
pythonlist.cpp:2:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
1 | #include <iostream>
+++ |+#include <stack>
2 | #define int long long
pythonlist.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
pythonlist.cpp:8:10: note: in expansion of macro ‘int’
8 | stack<int> p;
| ^~~
pythonlist.cpp:15:10: error: ‘p’ was not declared in this scope
15 | p.push(x);
| ^
pythonlist.cpp:18:15: error: ‘p’ was not declared in this scope
18 | if (!p.empty()) {
| ^