Borderou de evaluare (job #1469564)

Utilizator tancuStancu George tancu Data 8 august 2015 18:18:09
Problema Fractii Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:34:2: warning: passing argument 1 of ‘fopen’ from incompatible pointer type [enabled by default] FILE *out = fopen(&out, "fractii.out", "w"); ^ In file included from user.c:1:0: /usr/include/stdio.h:273:14: note: expected ‘const char * restrict’ but argument is of type ‘struct FILE **’ extern FILE *fopen (__const char *__restrict __filename, ^ user.c:34:2: error: too many arguments to function ‘fopen’ FILE *out = fopen(&out, "fractii.out", "w"); ^ In file included from user.c:1:0: /usr/include/stdio.h:273:14: note: declared here extern FILE *fopen (__const char *__restrict __filename, ^ user.c:19:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &n); ^

Ceva nu functioneaza?