Borderou de evaluare (job #605297)

Utilizator avatar Mihai_Ariton Mihai Ariton Mihai_Ariton IP ascuns
Problemă Tastatura2 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 3 sept. 2021 13:41:10 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:6:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 6 | FILE fin*, fout*; | ^ main.c:6:14: error: expected expression before ',' token 6 | FILE fin*, fout*; | ^ main.c:6:16: error: 'fout' undeclared (first use in this function) 6 | FILE fin*, fout*; | ^~~~ main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in main.c:6:14: warning: left-hand operand of comma expression has no effect [-Wunused-value] 6 | FILE fin*, fout*; | ^ main.c:9:5: error: 'fin' undeclared (first use in this function) 9 | fin=fopen("tastatura2.in", "r"); | ^~~ main.c:25:24: error: expected ')' before 'ch' 25 | nr=nr+(int(ch)-48); | ^~ | ) main.c:25:27: error: expected ')' before '-' token 25 | nr=nr+(int(ch)-48); | ~ ^ | ) main.c:26:20: error: expected ')' before 'ch' 26 | p=(int(ch)-48); | ^~ | ) main.c:26:23: error: expected ')' before '-' token 26 | p=(int(ch)-48); | ~ ^ | )