Borderou de evaluare (job #798773)
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 18:53:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:32:18: warning: missing terminating " character
32 | fprintf(fout,"%d\", f );
| ^
main.c:32:18: error: missing terminating " character
32 | fprintf(fout,"%d\", f );
| ^~~~~~~~~~~
main.c:33:35: error: expected ')' before ';' token
33 | fprintf(fout,"%d", castigator);
| ^
| )
main.c:32:12: note: to match this '('
32 | fprintf(fout,"%d\", f );
| ^
main.c:33:5: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
33 | fprintf(fout,"%d", castigator);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/stdio.h:970,
from main.c:1:
/usr/include/bits/stdio2.h:109:60: note: expected 'const char *' but argument is of type 'int'
109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:35:14: error: expected ';' before '}' token
35 | return 0;
| ^
| ;
36 | }
| ~
main.c:7:57: warning: variable 'f' set but not used [-Wunused-but-set-variable]
7 | int i , a , b , c ,n , y , x , d = 0,castigator = 0,f = 1 ;
| ^
main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin,"%d" ,&n);
| ^~~~~~~~~~~~~~~~~~~~
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin,"%d" ,&x);
| ^~~~~~~~~~~~~~~~~~~~
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d" ,&y);
| ^~~~~~~~~~~~~~~~~~~~
main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin,"%d" ,&a);
| ^~~~~~~~~~~~~~~~~~~~
main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin,"%d" ,&b);
| ^~~~~~~~~~~~~~~~~~~~
main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin,"%d" ,&c);