Borderou de evaluare (job #798790)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cursa Formula 1 (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 02 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 3 dec. 2024 19:13:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:19: warning: too many arguments for format [-Wformat-extra-args]
8 | fscanf (fin, "%d&d&d" , &n , &x, &y);
| ^~~~~~~~
main.c:12:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
12 | for (int i =1;i<=n;i++) ;
| ^~~
main.c:13:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | {
| ^
main.c:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if (timptotal < mintimp || (timptotal == mintimp && csg== -1) );
| ^~
main.c:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
18 | mintimp == timptotal;
| ^~~~~~~
main.c:18:17: warning: statement with no effect [-Wunused-value]
18 | mintimp == timptotal;
| ~~~~~~~~^~~~~~~~~~~~
main.c:19:15: error: 'i' undeclared (first use in this function); did you mean 'ci'?
19 | csg = i;
| ^
| ci
main.c:19:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf (fin, "%d&d&d" , &n , &x, &y);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:15:6: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf ( fin, "%d%d%d", &ai, &bi,&ci) ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~