Borderou de evaluare (job #102667)

Utilizator avatar COJOCARIU_ELENA Elena Cojocariu COJOCARIU_ELENA IP ascuns
Problemă Numere1 (clasa a 5-a) Compilator c
Rundă greu. Status evaluat
Dată 8 ian. 2015 12:47:10 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:10:20: error: ‘n’ undeclared (first use in this function) user.c:10:20: note: each undeclared identifier is reported only once for each function it appears in user.c:15:16: error: expected ‘)’ before ‘um’ user.c:17:9: error: expected ‘;’ before ‘if’ user.c:19:9: error: expected ‘}’ before ‘else’ user.c:4:15: warning: unused variable ‘fout’ [-Wunused-variable] user.c: At top level: user.c:29:3: warning: data definition has no type or storage class [enabled by default] user.c:29:3: warning: type defaults to ‘int’ in declaration of ‘fclose’ [-Wimplicit-int] user.c:29:3: warning: parameter names (without types) in function declaration [enabled by default] user.c:31:3: warning: data definition has no type or storage class [enabled by default] user.c:31:3: warning: type defaults to ‘int’ in declaration of ‘fout’ [-Wimplicit-int] user.c:31:8: warning: initialization makes integer from pointer without a cast [enabled by default] user.c:31:3: error: initializer element is not constant user.c:32:17: error: expected ‘)’ before string constant user.c:33:3: warning: data definition has no type or storage class [enabled by default] user.c:33:3: warning: type defaults to ‘int’ in declaration of ‘fclose’ [-Wimplicit-int] user.c:33:3: warning: parameter names (without types) in function declaration [enabled by default] user.c:35:3: error: expected identifier or ‘(’ before ‘return’ user.c:36:1: error: expected identifier or ‘(’ before ‘}’ token user.c: In function ‘main’: user.c:9:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:11:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:28:3: warning: control reaches end of non-void function [-Wreturn-type]