Borderou de evaluare (job #844092)

Utilizator avatar Roby2206 Staicu Robert Roby2206 IP ascuns
Problemă Optim (clasa a 8-a) Compilator c
Rundă Tema 8 Clasa a 7-a Status evaluat
Dată 1 dec. 2025 19:47:27 Scor 0

Raport evaluator

Eroare de compilare: main.c:6:1: warning: data definition has no type or storage class 6 | max=-MAX; | ^~~ main.c:6:1: error: type defaults to 'int' in declaration of 'max' [-Wimplicit-int] main.c:7:1: warning: data definition has no type or storage class 7 | min=MAX; | ^~~ main.c:7:1: error: type defaults to 'int' in declaration of 'min' [-Wimplicit-int] main.c: In function 'main': main.c:27:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin,"%d%d",&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:29:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 29 | fscanf(fin,"%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~