Problem carpark
User PerihelionfromAphelion
Submission Time 2026-03-07 11:00:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:12:18: error: expected initializer before ‘++’ token
12 | int currentsum++;
| ^~
carpark.cpp:15:18: error: ‘currentsum’ was not declared in this scope
15 | int max_sum = currentsum;
| ^~~~~~~~~~
carpark.cpp:17:14: error: ‘max_sum’ was not declared in this scope
17 | cout << n - max_sum;
| ^~~~~~~