Borderou de evaluare (job #625211)

Utilizator avatar daria.diaconu Daria Diaconu daria.diaconu IP ascuns
Problemă Gliph (Clasa a 6-a) Compilator c-32
Rundă Concurs 04 cursuri de performanță | IQ Academy | clasa a 6-a Status evaluat
Dată 14 ian. 2022 19:23:18 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:14:21: warning: too many arguments for format [-Wformat-extra-args] 14 | fprintf(fin,"&c",'\n'); | ^~~~ main.c:22:13: error: 'cnt' undeclared (first use in this function); did you mean 'cnt1'? 22 | cnt+=total; | ^~~ | cnt1 main.c:22:13: note: each undeclared identifier is reported only once for each function it appears in main.c:41:23: error: expected expression before ']' token 41 | if(g[lin][]) | ^ main.c:6:46: warning: unused variable 'k' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^ main.c:6:25: warning: unused variable 'cnt1' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^~~~ main.c:6:22: warning: unused variable 'cc' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^~ main.c:6:19: warning: unused variable 'lc' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^~ main.c:6:17: warning: unused variable 'c' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^ main.c:6:15: warning: unused variable 'd' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^ main.c:6:13: warning: unused variable 't' [-Wunused-variable] 6 | int n,x,t,d,c,lc,cc,cnt1=0,col,lin,total,k=0; | ^ main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin,"%d%d",&n,&x); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%d ",&g[lin][col]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~