Borderou de evaluare (job #827770)

Utilizator avatar ArghirBianca Arghir Bianca-Elena ArghirBianca IP ascuns
Problemă Forus (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 10 iun. 2025 17:17:40 Scor 0

Raport evaluator

Eroare de compilare: main.c:36:1: warning: data definition has no type or storage class 36 | fclose( fin ); | ^~~~~~ main.c:36:1: error: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] main.c:36:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] main.c:37:1: warning: data definition has no type or storage class 37 | fclose( fout ); | ^~~~~~ main.c:37:1: error: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] main.c:37:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] main.c:38:1: error: expected identifier or '(' before 'return' 38 | return 0; | ^~~~~~ main.c:39:1: error: expected identifier or '(' before '}' token 39 | } | ^ main.c: In function 'main': main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf( fin, "%d%d%d%d", &k, &n, &a , &p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~