Borderou de evaluare (job #1746653)
Utilizator | Data | 23 august 2016 17:59:44 | |
---|---|---|---|
Problema | Iepuri | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:8:8: warning: assignment makes pointer from integer without a cast [enabled by default]
fin=
^
user.c:12:9: error: incompatible type for argument 1 of ‘fscanf’
fscanf(*fopen("iepuri.in","r"),"%d %d %d %d %d %d %d",&x,&y,&z,&a,&b,&c,&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 ‘FILE’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:20:9: error: incompatible type for argument 1 of ‘fprintf’
fprintf(*fopen("iepuri.out","w"),"%d\n",nr[n-2]);
^
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 ‘FILE’
fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !