Borderou de evaluare (job #1092460)

Utilizator vladradu2014Radu Vlad Alexandru vladradu2014 Data 27 ianuarie 2014 03:22:22
Problema Cifre4 Status done
Runda Arhiva ICPC Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:28:6: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘char *’ [-Wformat=] fscanf(fp_r,"%s %d",aN,aP); ^ user.c:38:7: error: expected ‘)’ before ‘b’ b=0; ^ user.c:40:18: warning: unknown escape sequence: '\N' [enabled by default] fprintf(fp_w,"%d\N",-1); ^ user.c:44:18: warning: unknown escape sequence: '\N' [enabled by default] fprintf(fp_w,"%s\N",aN); ^ user.c:47:3: error: expected expression before ‘}’ token } ^ user.c:53:5: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] N=atoi(aN); ^ user.c:55:5: warning: implicit declaration of function ‘itoa’ [-Wimplicit-function-declaration] aN=itoa(c*P+N); ^ user.c:55:7: warning: assignment makes pointer from integer without a cast [enabled by default] aN=itoa(c*P+N); ^ user.c:56:5: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast [enabled by default] lP=strlen(P); ^ In file included from user.c:3:0: /usr/include/string.h:397:15: note: expected ‘const char *’ but argument is of type ‘int’ extern size_t strlen (__const char *__s) ^ user.c:62:14: warning: unknown escape sequence: '\N' [enabled by default] fprintf("%s\N",aN); ^ user.c:62:6: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf("%s\N",aN); ^ In file included from user.c:1:0: /usr/include/stdio.h:333:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’ extern int fprintf (FILE *__restrict __stream, ^ user.c:8:10: warning: variable ‘fp_w’ set but not used [-Wunused-but-set-variable] FILE *fp_w; ^

Ceva nu functioneaza?