Problem brick
User Teeskit
Submission Time 2025-06-29 23:41:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:18:50: error: ‘A’ was not declared in this scope
18 | while (!stack.empty() && stack.back() <= A[i]) {
| ^
brick.cpp:21:25: error: ‘A’ was not declared in this scope
21 | stack.push_back(A[i]);
| ^