Borderou de evaluare (job #626126)

Utilizator avatar nimeni Stefan Ferseta nimeni IP ascuns
Problemă Bomboane 1 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 18 ian. 2022 18:48:15 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:17:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 17 | if(c>='0' && c<='9') | ^~ main.c:19:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 19 | c=fgetc(fin);} | ^ main.c:20:22: error: expected ';' before 'c' 20 | while(c=='$') | ^ | ; 21 | c=fgetc(fin); | ~ main.c:7:17: warning: unused variable 'si' [-Wunused-variable] 7 | int n,s,d,r,si; | ^~ main.c:7:15: warning: unused variable 'r' [-Wunused-variable] 7 | int n,s,d,r,si; | ^ main.c:7:13: warning: unused variable 'd' [-Wunused-variable] 7 | int n,s,d,r,si; | ^ main.c:6:17: warning: unused variable 'fout' [-Wunused-variable] 6 | FILE *fin, *fout; | ^~~~ main.c: At top level: main.c:32:5: error: expected identifier or '(' before 'while' 32 | while(c!='\n'); | ^~~~~ main.c:33:5: warning: data definition has no type or storage class 33 | d=1; | ^ main.c:33:5: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] main.c:34:5: warning: data definition has no type or storage class 34 | si=s; | ^~ main.c:34:5: warning: type defaults to 'int' in declaration of 'si' [-Wimplicit-int] main.c:34:8: error: 's' undeclared here (not in a function); did you mean 'si'? 34 | si=s; | ^ | si main.c:35:5: error: expected identifier or '(' before 'do' 35 | do | ^~ main.c:40:5: error: expected identifier or '(' before 'while' 40 | while (r!=0); | ^~~~~ main.c:41:5: error: expected identifier or '(' before 'if' 41 | if(s==si) | ^~