Problem car
User boaznumberd5555
Submission Time 2024-11-15 13:58:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

car.cpp: In function ‘int main()’:
car.cpp:17:20: error: ‘n’ was not declared in this scope
17 | for(int i=0; i<n; i++) p[i]=i;
| ^
car.cpp:24:14: error: expected ‘;’ before ‘)’ token
24 | for(int i)
| ^
| ;
car.cpp:24:14: error: expected primary-expression before ‘)’ token
car.cpp:24:14: error: expected ‘;’ before ‘)’ token
24 | for(int i)
| ^
| ;
car.cpp:25:1: error: expected primary-expression before ‘}’ token
25 | }
| ^