Borderou de evaluare (job #4594)

Utilizator avatar cristiandanila.. cristiandanila cristiandanila.. IP ascuns
Problemă Economii Compilator c
Rundă Olimpiada pe Scoala 2012, Clasa a 5-a Status evaluat
Dată 19 dec. 2012 14:05:37 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:10:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’ user.c:16:14: error: expected expression before ‘}’ token user.c:7:27: warning: unused variable ‘Ymic’ [-Wunused-variable] user.c:7:24: warning: variable ‘bb’ set but not used [-Wunused-but-set-variable] user.c:7:17: warning: variable ‘contor’ set but not used [-Wunused-but-set-variable] user.c:7:11: warning: unused variable ‘p’ [-Wunused-variable] user.c:6:16: warning: unused variable ‘fout’ [-Wunused-variable] user.c:6:11: warning: variable ‘fin’ set but not used [-Wunused-but-set-variable] user.c: At top level: user.c:17:4: warning: data definition has no type or storage class [enabled by default] user.c:17:4: warning: type defaults to ‘int’ in declaration of ‘Ymic’ [-Wimplicit-int] user.c:17:14: error: ‘bb’ undeclared here (not in a function) user.c:19:4: warning: data definition has no type or storage class [enabled by default] user.c:19:4: warning: type defaults to ‘int’ in declaration of ‘contor’ [-Wimplicit-int] user.c:19:18: error: ‘k’ undeclared here (not in a function) user.c:20:4: warning: data definition has no type or storage class [enabled by default] user.c:20:4: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] user.c:21:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token user.c:22:4: error: expected identifier or ‘(’ before ‘if’ user.c:32:32: warning: missing terminating " character [enabled by default] user.c:32:4: error: missing terminating " character user.c: In function ‘main’: user.c:10:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:16:14: warning: control reaches end of non-void function [-Wreturn-type]