Problem carpark
User DuckOverlord
Submission Time 2026-04-30 09:54:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:18:17: error: ‘D’ was not declared in this scope
18 | for (int i=0;i<D;i++) {
| ^
carpark.cpp:19:3: error: ‘endKg’ was not declared in this scope
19 | endKg += potatos[N-1-i];
| ^~~~~
carpark.cpp:19:12: error: ‘potatos’ was not declared in this scope
19 | endKg += potatos[N-1-i];
| ^~~~~~~
carpark.cpp:21:10: error: ‘endKg’ was not declared in this scope
21 | cout << endKg;
| ^~~~~