Borderou de evaluare (job #549290)

Utilizator avatar Remus Rughinis Remus Remus IP ascuns
Problemă Proiecte (clasa a 7-a) Compilator c
Rundă ONI (clasa a 7-a) Status evaluat
Dată 27 mar. 2020 11:12:17 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:6:15: warning: unused variable ‘fout’ [-Wunused-variable] user.c: At top level: user.c:35:3: warning: data definition has no type or storage class [enabled by default] user.c:35:3: warning: type defaults to ‘int’ in declaration of ‘fclose’ [-Wimplicit-int] user.c:35:3: warning: parameter names (without types) in function declaration [enabled by default] user.c:36:3: warning: data definition has no type or storage class [enabled by default] user.c:36:3: warning: type defaults to ‘int’ in declaration of ‘max’ [-Wimplicit-int] user.c:37:3: error: expected identifier or ‘(’ before ‘for’ user.c:37:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token user.c:37:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token user.c:41:3: warning: data definition has no type or storage class [enabled by default] user.c:41:3: warning: type defaults to ‘int’ in declaration of ‘fout’ [-Wimplicit-int] user.c:41:8: warning: initialization makes integer from pointer without a cast [enabled by default] user.c:41:3: error: initializer element is not constant user.c:42:3: error: expected identifier or ‘(’ before ‘for’ user.c:42:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token user.c:42:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token user.c:45:16: error: expected ‘)’ before string constant user.c:46:3: warning: data definition has no type or storage class [enabled by default] user.c:46:3: warning: type defaults to ‘int’ in declaration of ‘fclose’ [-Wimplicit-int] user.c:46:3: warning: parameter names (without types) in function declaration [enabled by default] user.c:47:3: error: expected identifier or ‘(’ before ‘return’ user.c:48:1: error: expected identifier or ‘(’ before ‘}’ token user.c: In function ‘main’: user.c:8:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:10:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:13:13: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:34:3: warning: control reaches end of non-void function [-Wreturn-type]