Problem carpark
User Dolphy
Submission Time 2023-08-13 21:54:22
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 (consecutive[j] > consecutive[j+1]) swap(consecutive[j], consecutive[j+1];
| ^
| ;
carpark.cpp:28:88: error: invalid types ‘int[int]’ for array subscript
28 | for (i=0; i<consecutive-1, i++) for (j=0; j<consecutive-i-1; j++) if (consecutive[j] > consecutive[j+1]) swap(consecutive[j], consecutive[j+1];
| ^
carpark.cpp:28:107: error: invalid types ‘int[int]’ for array subscript
28 | for (i=0; i<consecutive-1, i++) for (j=0; j<consecutive-i-1; j++) if (consecutive[j] > consecutive[j+1]) swap(consecutive[j], consecutive[j+1];
|