Borderou de evaluare (job #743734)

Utilizator avatar CrIsTii zoescu cristian CrIsTii IP ascuns
Problemă Cabina (clasa a 5-a) Compilator c-32
Rundă Concurs 01 | IQ Academy | clasa a 5-a, dimineață Status evaluat
Dată 10 nov. 2023 10:58:06 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:13:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 13 | fscanf(fin,"%d/n",a);} | ~^ ~ | | | | | int | int * main.c:14:13: error: expected ';' before 'if' 14 | f++ | ^ | ; 15 | if(ua2>a){ | ~~ main.c:21:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 21 | fscanf(fin,"%d/n",a); | ~^ ~ | | | | | int | int * main.c:22:8: error: expected ';' before 'if' 22 | x++ | ^ | ; 23 | if(ua3>a){ | ~~ main.c:34:8: error: expected ';' before 'if' 34 | e++ | ^ | ; 35 | if(a>ua){ | ~~ main.c:6:37: warning: unused variable 'ua3' [-Wunused-variable] 6 | int n,a,b,i,p,l,e,ua,stsp,f,ua2,x=0,ua3=0; | ^~~ main.c:6:29: warning: variable 'ua2' set but not used [-Wunused-but-set-variable] 6 | int n,a,b,i,p,l,e,ua,stsp,f,ua2,x=0,ua3=0; | ^~~ main.c:6:22: warning: variable 'stsp' set but not used [-Wunused-but-set-variable] 6 | int n,a,b,i,p,l,e,ua,stsp,f,ua2,x=0,ua3=0; | ^~~~ main.c:6:19: warning: variable 'ua' set but not used [-Wunused-but-set-variable] 6 | int n,a,b,i,p,l,e,ua,stsp,f,ua2,x=0,ua3=0; | ^~ main.c:8:1: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf(fin,"%d/n",&n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:13:10: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin,"%d/n",a);} | ^~~~~~~~~~~~~~~~~~~~ main.c:21:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]