Borderou de evaluare (job #812159)

Utilizator avatar MirceaDiaconu Diaconu Mircea Alexandru MirceaDiaconu IP ascuns
Problemă Paranteze 1 (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 1 mar. 2025 19:09:35 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:27:21: error: expected expression before ':' token 27 | if(c == ')'): | ^ main.c:34:21: error: expected expression before ':' token 34 | if(c == '}'): | ^ main.c:4:19: warning: variable 'fout' set but not used [-Wunused-but-set-variable] 4 | FILE *fin, *fout; | ^~~~ main.c: At top level: main.c:41:9: warning: data definition has no type or storage class 41 | c = fgetc( fin ); | ^ main.c:41:9: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] main.c:41:20: error: 'fin' undeclared here (not in a function) 41 | c = fgetc( fin ); | ^~~ main.c:42:5: error: expected identifier or '(' before '}' token 42 | } | ^ main.c:43:5: error: expected identifier or '(' before 'if' 43 | if(x != 1){ | ^~ main.c:46:19: error: expected ')' before string constant 46 | fprintf( fout, "%d", m ); | ^~~~~ | ) main.c:47:5: warning: data definition has no type or storage class 47 | fclose( fout ); | ^~~~~~ main.c:47:5: error: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] main.c:47:5: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] main.c:48:5: warning: data definition has no type or storage class 48 | fclose( fin ); | ^~~~~~ main.c:48:5: error: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] main.c:48:5: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] main.c:49:3: error: expected identifier or '(' before 'return' 49 | return 0; | ^~~~~~ main.c:50:1: error: expected identifier or '(' before '}' token 50 | } | ^