Borderou de evaluare (job #710332)

Utilizator avatar Emre Isleam Emre Emre IP ascuns
Problemă Șoricel (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 22 mar. 2023 22:10:00 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:10:2: error: unknown type name 'N' 10 | {N | ^ main.c:11:11: warning: initialization of 'int' from 'FILE *' makes integer from pointer without a cast [-Wint-conversion] 11 | fin = fopen("soricel.in","r"); | ^~~~~ main.c:14:12: warning: passing argument 1 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion] 14 | fscanf(fin,"%d%d%d%d",&p,&n,&m,&k); | ^~~ | | | int In file included from main.c:1: /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'int' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:17:16: warning: passing argument 1 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion] 17 | fscanf(fin,"%d",&a[i][j]); | ^~~ | | | int In file included from main.c:1: /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'int' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:13:32: warning: unused variable 'sq' [-Wunused-variable] 13 | int p,n,m,k,ok = 0,s = 0,v,sq,V,zi=0,i,j; | ^~ main.c:13:17: warning: unused variable 'ok' [-Wunused-variable] 13 | int p,n,m,k,ok = 0,s = 0,v,sq,V,zi=0,i,j; | ^~ main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin,"%d%d%d%d",&p,&n,&m,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:17:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin,"%d",&a[i][j]); | ^~~~~~~~~~~~~~~~~~~~~~~~~