Borderou de evaluare (job #844608)

Utilizator avatar SpeedyAlexR Alexandru Ristea SpeedyAlexR IP ascuns
Problemă Maxrec (clasa a 7-a) Compilator c
Rundă Tema 9 Clasa a 7-a Status evaluat
Dată 7 dec. 2025 11:06:58 Scor 0

Raport evaluator

Eroare de compilare: main.c:18:6: warning: return type of 'main' is not 'int' [-Wmain] 18 | void main() { | ^~~~ main.c: In function 'main': main.c:35:10: error: 'return' with a value, in function returning void [-Wreturn-mismatch] 35 | return 0; | ^ main.c:18:6: note: declared here 18 | void main() { | ^~~~ main.c:23:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:25:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 25 | fscanf(fin,"%d",& v[i]); | ^~~~~~~~~~~~~~~~~~~~~~~