Problem brick
User KingH
Submission Time 2025-08-22 15:45:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:14:4: error: ‘stacks’ was not declared in this scope; did you mean ‘stack’?
14 | stacks.push_back(bricks[i]);
| ^~~~~~
| stack
brick.cpp:15:11: error: invalid types ‘long long int[int]’ for array subscript
15 | X = N[i];
| ^
brick.cpp:19:11: error: invalid types ‘long long int[int]’ for array subscript
19 | X = N[i];
| ^
brick.cpp:28:2: error: expected ‘}’ at end of input
28 | }
| ^
brick.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^