Problem carpark
User Dolphy
Submission Time 2023-08-13 21:55:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:28:35: error: expected ‘;’ before ‘)’ token
28 | for (i=0; i<consecutive-1, i++) for (j=0; j<consecutive-i-1; j++) if (unoccupied[j] > unoccupied[j+1]) swap(unoccupied[j], unoccupied[j+1];
| ^
| ;
carpark.cpp:28:143: error: expected ‘)’ before ‘;’ token
28 | for (i=0; i<consecutive-1, i++) for (j=0; j<consecutive-i-1; j++) if (unoccupied[j] > unoccupied[j+1]) swap(unoccupied[j], unoccupied[j+1];
| ~ ^
| )