Borderou de evaluare (job #605398)

Utilizator avatar Mihai_Ariton Mihai Ariton Mihai_Ariton IP ascuns
Problemă Magic1 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 4 sept. 2021 15:52:40 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:27:18: warning: passing argument 2 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion] 27 | fscanf(fout, '\n'); | ^~~~ | | | int In file included from main.c:1: /usr/include/stdio.h:392:29: note: expected 'const char * restrict' but argument is of type 'int' 392 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:33:28: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 33 | fscanf(fout, "%d", i) | ~^ ~ | | | | | int | int * main.c:33:34: error: expected ';' before 'ok' 33 | fscanf(fout, "%d", i) | ^ | ; 34 | ok=1; | ~~ main.c:39:32: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 39 | fscanf(fout, "%d", t) | ~^ ~ | | | | | int | int * main.c:39:38: error: expected ';' before 'v' 39 | fscanf(fout, "%d", t) | ^ | ; 40 | v[0]=21; | ~ main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:27:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fout, '\n'); | ^~~~~~~~~~~~~~~~~~ main.c:33:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | fscanf(fout, "%d", i) | ^~~~~~~~~~~~~~~~~~~~~ main.c:39:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 39 | fscanf(fout, "%d", t) | ^~~~~~~~~~~~~~~~~~~~~