Borderou de evaluare (job #798815)

Utilizator avatar PKarinaa_ Pata Karina PKarinaa_ 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:35:18 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 >= csg ); | ^~ main.c:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 18 | mintimp = csg; | ^~~~~~~ main.c:19:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 19 | if (timptotal < csg ); | ^~ main.c:20:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 20 | csg = csg ; | ^~~ main.c:23:9: error: expected statement before ')' token 23 | ) | ^ main.c:26:12: error: redefinition of 'fout' 26 | FILE *fout = fopen ("cursaf1.out", "w" ); | ^~~~ main.c:6:11: note: previous definition of 'fout' with type 'FILE *' 6 | FILE *fout = fopen ("cursaf1.out", "w" ); | ^~~~ main.c:27:33: error: 'min' undeclared (first use in this function); did you mean 'fin'? 27 | fprintf ( fout, "%d%d\n" , min ) ; | ^~~ | fin main.c:27:33: note: each undeclared identifier is reported only once for each function it appears in main.c:9:9: warning: variable 'mintimp' set but not used [-Wunused-but-set-variable] 9 | int mintimp = 1000000000 ; | ^~~~~~~ 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) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~