Borderou de evaluare (job #324545)

Utilizator avatar andreic06 calota andrei andreic06 IP ascuns
Problemă Cifre 4 (clasa a 5-a) Compilator c
Rundă c1_5 Status evaluat
Dată 19 nov. 2017 16:22:57 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:9:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat] user.c:30:5: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’ user.c:30:5: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default] /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘const char * __restrict__’ but argument is of type ‘long long int’ user.c:30:5: warning: format not a string literal and no format arguments [-Wformat-security] user.c:7:40: warning: variable ‘cn1’ set but not used [-Wunused-but-set-variable] user.c:7:33: warning: variable ‘d’ set but not used [-Wunused-but-set-variable] user.c:7:23: warning: variable ‘max1’ set but not used [-Wunused-but-set-variable] user.c:6:17: warning: variable ‘fout’ set but not used [-Wunused-but-set-variable] user.c: At top level: user.c:34:21: error: expected ‘)’ before string constant user.c:35:5: error: expected identifier or ‘(’ before ‘while’ user.c:40:21: error: expected ‘)’ before string constant user.c:41:5: warning: data definition has no type or storage class [enabled by default] user.c:41:5: warning: type defaults to ‘int’ in declaration of ‘fclose’ [-Wimplicit-int] user.c:41:5: warning: parameter names (without types) in function declaration [enabled by default] user.c:42:5: error: expected identifier or ‘(’ before ‘return’ user.c:43:1: error: expected identifier or ‘(’ before ‘}’ token user.c: In function ‘main’: user.c:9:12: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:33:5: warning: control reaches end of non-void function [-Wreturn-type]