Borderou de evaluare (job #89927)

Utilizator avatar Tudor_Mihalcea B Mihalcea Tudor Tudor_Mihalcea IP ascuns
Problemă Plaja 2 (clasa a 5-a) Compilator c
Rundă Concurs simulare clasa a 5-a Status evaluat
Dată 18 nov. 2014 12:59:37 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘cmmdc’: user.c:9:29: error: invalid operands to binary & (have ‘char *’ and ‘int’) user.c:16:32: error: ‘r’ undeclared (first use in this function) user.c:16:32: note: each undeclared identifier is reported only once for each function it appears in user.c:16:9: warning: passing argument 1 of ‘fopen’ from incompatible pointer type [enabled by default] /usr/include/stdio.h:273:14: note: expected ‘const char * __restrict__’ but argument is of type ‘struct FILE *’ user.c:16:9: error: too many arguments to function ‘fopen’ /usr/include/stdio.h:273:14: note: declared here user.c: At top level: user.c:20:5: error: redefinition of ‘main’ user.c:2:5: note: previous definition of ‘main’ was here user.c: In function ‘main’: user.c:30:5: warning: implicit declaration of function ‘cmmdc’ [-Wimplicit-function-declaration] user.c:33:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat] user.c:34:9: error: expected ‘;’ before ‘sum’ user.c:36:22: error: ‘sum’ undeclared (first use in this function) user.c:22:21: warning: variable ‘s’ set but not used [-Wunused-but-set-variable] user.c:25:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:28:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:29:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:33:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]