Borderou de evaluare (job #2127328)
Utilizator | Data | 10 februarie 2018 15:52:54 | |
---|---|---|---|
Problema | Alohomora | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:14:5: error: unknown type name ‘File’
File *in=fopen("alohomora.in","r"), *out=fopen("alohomora.out","w");
^
user.c:14:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
File *in=fopen("alohomora.in","r"), *out=fopen("alohomora.out","w");
^
user.c:14:46: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
File *in=fopen("alohomora.in","r"), *out=fopen("alohomora.out","w");
^
user.c:16:11: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(in,"%d",&teste);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from user.c:1:
/usr/include/stdio.h:443:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:19:12: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(in,"%d%d%d",&n,&m,&k);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from user.c:1:
/usr/include/stdio.h:443:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:29:16: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(in,"%d%d",&cheie[j].rang,&cheie[j].index);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from user.c:1:
/usr/include/stdio.h:443:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:34:16: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(in,"%d%d",&seif[j].rang,&seif[j].index);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from user.c:1:
/usr/include/stdio.h:443:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:96:13: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
fprintf(out,"%d\n",output[i]);
^
In file included from /usr/include/stdio.h:936:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !