Borderou de evaluare (job #605304)

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:51:37 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:28:24: error: expected ')' before 'ch' 28 | nr=nr+(int(ch)-48); | ^~ | ) main.c:28:27: error: expected ')' before '-' token 28 | nr=nr+(int(ch)-48); | ~ ^ | ) main.c:29:20: error: expected ')' before 'ch' 29 | p=(int(ch)-48); | ^~ | ) main.c:29:23: error: expected ')' before '-' token 29 | p=(int(ch)-48); | ~ ^ | ) main.c:12:28: warning: variable 'd' set but not used [-Wunused-but-set-variable] 12 | int nr=0, s=0, k, p=0, d; | ^ main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin, "%d", &k); | ^~~~~~~~~~~~~~~~~~~~~