Borderou de evaluare (job #756223)

Utilizator avatar TudorMit Mituca Tudor-Ionut TudorMit IP ascuns
Problemă Test (clasa a 5-a) Compilator c-32
Rundă Concurs 03 | IQ Academy | clasa a 5-a Status evaluat
Dată 20 ian. 2024 11:58:04 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:7:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token 7 | int a,b,ca,cb,p=1,pb=1,i=0,y=0,n,j,caz,e,x,c,max=-1,caz2,caz3,cnt==0,max2=-1; | ^~ main.c:34:9: error: 'cnt' undeclared (first use in this function); did you mean 'int'? 34 | cnt++; | ^~~ | int main.c:34:9: note: each undeclared identifier is reported only once for each function it appears in main.c:38:10: error: 'max2' undeclared (first use in this function); did you mean 'max'? 38 | if(max2<caz && cnt==0) | ^~~~ | max main.c:66:17: error: expected ';' before '}' token 66 | max=caz3 | ^ | ; 67 | } | ~ main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin,"%d%d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~~~~~