Borderou de evaluare (job #89921)

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:56:28 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:7:26: error: ‘x’ undeclared (first use in this function) user.c:7:26: note: each undeclared identifier is reported only once for each function it appears in user.c:7:30: error: ‘y’ undeclared (first use in this function) user.c:13:28: error: ‘r’ undeclared (first use in this function) user.c:13:5: 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:13:5: error: too many arguments to function ‘fopen’ /usr/include/stdio.h:273:14: note: declared here user.c: At top level: user.c:16:9: error: redefinition of ‘main’ user.c:2:5: note: previous definition of ‘main’ was here user.c: In function ‘main’: user.c:24:5: warning: implicit declaration of function ‘cmmdc’ [-Wimplicit-function-declaration] user.c:4:9: note: previous declaration of ‘cmmdc’ was here user.c:26:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat] user.c:27:13: error: expected ‘;’ before ‘sum’ user.c:29:22: error: ‘sum’ undeclared (first use in this function) user.c:17:21: warning: variable ‘s’ set but not used [-Wunused-but-set-variable] user.c:20:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:23:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:26:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]