Borderou de evaluare (job #1020116)
Utilizator | Data | 1 noiembrie 2013 18:31:13 | |
---|---|---|---|
Problema | Gutui | Status | done |
Runda | teme_upb | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘Date’:
user.c:11:9: warning: unused variable ‘max_gutui’ [-Wunused-variable]
int max_gutui,i;
^
user.c: In function ‘scrieDate’:
user.c:23:5: warning: passing argument 1 of ‘fopen’ from incompatible pointer type [enabled by default]
FILE *f = fopen(f,"gutui.out","w");
^
In file included from user.c:1:0:
/usr/include/stdio.h:249:14: note: expected ‘const char * restrict’ but argument is of type ‘struct FILE *’
extern FILE *fopen (__const char *__restrict __filename,
^
user.c:23:5: error: too many arguments to function ‘fopen’
FILE *f = fopen(f,"gutui.out","w");
^
In file included from user.c:1:0:
/usr/include/stdio.h:249:14: note: declared here
extern FILE *fopen (__const char *__restrict __filename,
^
user.c:24:6: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default]
fprintf("%d",s);
^
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:24:6: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default]
fprintf("%d",s);
^
In file included from user.c:1:0:
/usr/include/stdio.h:333:12: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern int fprintf (FILE *__restrict __stream,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !