Borderou de evaluare (job #1555817)

Utilizator ANA-MARIA.TIGAUTigau Ana-Maria ANA-MARIA.TIGAU Data 23 decembrie 2015 16:44:40
Problema K1 Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘lupta’: user.c:5:7: error: invalid operands to binary + (have ‘int *’ and ‘int *’) {x=x+y; ^ user.c:10:10: error: invalid operands to binary + (have ‘int *’ and ‘int *’) y=y+x; ^ user.c: In function ‘main’: user.c:23:2: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d",&n); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:23:2: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d",&n); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘const char * restrict’ but argument is of type ‘int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:41:14: error: ‘x’ undeclared (first use in this function) fprintf("%d",x); ^ user.c:41:14: note: each undeclared identifier is reported only once for each function it appears in user.c:41:1: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf("%d",x); ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:23:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf("%d",&n); ^ user.c:25:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(v,n*sizeof(int),1,in); ^

Ceva nu functioneaza?