Problem | brick |
---|---|
User | jambusk |
Submission Time | 2025-06-17 16:27:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:9:3: error: ‘stack’ was not declared in this scope
9 | stack<int> (N);
| ^~~~~
brick.cpp:2:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
1 | #include <iostream>
+++ |+#include <stack>
2 | using namespace std;
brick.cpp:9:9: error: expected primary-expression before ‘int’
9 | stack<int> (N);
| ^~~
brick.cpp:10:10: error: ‘A’ was not declared in this scope
10 | cin >> A(i);
| ^
brick.cpp:11:3: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
11 | stk.push(A(i));
| ^~~
| std