Borderou de evaluare (job #1194436)

Utilizator wickedmanCristian Strat wickedman Data 3 iunie 2014 21:48:03
Problema A+B Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:6:2: warning: passing argument 2 of ‘freopen’ from incompatible pointer type [enabled by default] freopen("adunare.in", stdin); ^ In file included from user.c:2:0: /usr/include/stdio.h:279:14: note: expected ‘const char * restrict’ but argument is of type ‘struct _IO_FILE *’ extern FILE *freopen (__const char *__restrict __filename, ^ user.c:6:2: error: too few arguments to function ‘freopen’ freopen("adunare.in", stdin); ^ In file included from user.c:2:0: /usr/include/stdio.h:279:14: note: declared here extern FILE *freopen (__const char *__restrict __filename, ^ user.c:7:2: warning: passing argument 2 of ‘freopen’ from incompatible pointer type [enabled by default] freopen("adunare.out", stdout); ^ In file included from user.c:2:0: /usr/include/stdio.h:279:14: note: expected ‘const char * restrict’ but argument is of type ‘struct _IO_FILE *’ extern FILE *freopen (__const char *__restrict __filename, ^ user.c:7:2: error: too few arguments to function ‘freopen’ freopen("adunare.out", stdout); ^ In file included from user.c:2:0: /usr/include/stdio.h:279:14: note: declared here extern FILE *freopen (__const char *__restrict __filename, ^ user.c:8:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^

Ceva nu functioneaza?