Problem brick
User jambusk
Submission Time 2025-06-17 16:27:04
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);
| ^
brick.cpp:11:3: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
11 | stk.push(A(i))
| ^~~
| std
brick.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
brick.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^