Problem brick
User Xiwen
Submission Time 2025-11-06 22:16:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:20:50: error: expected ‘}’ at end of input
20 | output_vector.erase(output_vector.begin() + j);
| ^
brick.cpp:19:29: note: to match this ‘{’
19 | if (first_height <= A[j]) {
| ^
brick.cpp:20:50: error: expected ‘}’ at end of input
20 | output_vector.erase(output_vector.begin() + j);
| ^
brick.cpp:18:30: note: to match this ‘{’
18 | for (int j = 1; j < N; ++j) {
| ^
brick.cpp:20:50: error: expected ‘}’ at end of input
20 | output_vector.erase(output_vector.begin() + j);
| ^
brick.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^