Borderou de evaluare (job #722486)

Utilizator avatar Emre Isleam Emre Emre IP ascuns
Problemă Imprimanta (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 31 mai 2023 17:33:03 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:17:13: warning: array subscript has type 'char' [-Wchar-subscripts] 17 | if(v[c] < min){ | ^ main.c:18:20: warning: array subscript has type 'char' [-Wchar-subscripts] 18 | min = v[c]; | ^ main.c:21:13: warning: array subscript has type 'char' [-Wchar-subscripts] 21 | if(v[c] == min && c > f) | ^ main.c:35:31: error: expected ';' before '}' token 35 | fprintf(fout,"74") | ^ | ; 36 | } | ~ main.c:12:13: warning: unused variable 'n' [-Wunused-variable] 12 | int k,i,n = 0,min = 14,f,r,ca; | ^ main.c:27:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin,"%d",&k); | ^~~~~~~~~~~~~~~~~~~