Borderou de evaluare (job #605490)

Utilizator avatar carinabrebenaru Carina Brebenaru carinabrebenaru IP ascuns
Problemă Fotbal3 (clasa a 6-a) Compilator c-32
Rundă Concurs cursuri de performanță | IQ Academy | clasa a 6-a Status evaluat
Dată 5 sept. 2021 13:39:31 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:22:28: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 22 | fscanf( fin, "%d", v); | ~^ ~ | | | | | int | int * main.c:39:28: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 39 | fscanf( fin, "%d", v); | ~^ ~ | | | | | int | int * main.c:45:17: warning: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 45 | x=fputc(fout); | ^~~~ | | | FILE * In file included from main.c:1: /usr/include/stdio.h:525:23: note: expected 'int' but argument is of type 'FILE *' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~^~~ main.c:45:11: error: too few arguments to function 'fputc' 45 | x=fputc(fout); | ^~~~~ In file included from main.c:1: /usr/include/stdio.h:525:12: note: declared here 525 | extern int fputc (int __c, FILE *__stream); | ^~~~~ main.c:52:28: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 52 | fscanf( fin, "%d", v); | ~^ ~ | | | | | int | int * main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf( fin, "%d", &cer); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf( fin, "%d%d%d", &f, &m, &a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf( fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:22:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | fscanf( fin, "%d", v); | ^~~~~~~~~~~~~~~~~~~~~ main.c:39:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 39 | fscanf( fin, "%d", v); | ^~~~~~~~~~~~~~~~~~~~~