Problem brick
User jambusk
Submission Time 2025-06-17 16:29:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:9:3: error: ‘stack’ was not declared in this scope
9 | stack<int> A(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> A(N);
| ^~~
brick.cpp:10:10: error: ‘A’ was not declared in this scope
10 | cin >> A(i);
| ^