Borderou de evaluare (job #2067459)
Utilizator | Data | 16 noiembrie 2017 14:40:45 | |
---|---|---|---|
Problema | Sushi | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:17:5: warning: passing argument 2 of ‘freopen’ from incompatible pointer type [enabled by default]
freopen("sushi.in", stdin);
^
In file included from user.c:1: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:17:5: error: too few arguments to function ‘freopen’
freopen("sushi.in", stdin);
^
In file included from user.c:1:0:
/usr/include/stdio.h:279:14: note: declared here
extern FILE *freopen (__const char *__restrict __filename,
^
user.c:18:2: warning: passing argument 2 of ‘freopen’ from incompatible pointer type [enabled by default]
freopen("sushi.out", stdout);
^
In file included from user.c:1: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:18:2: error: too few arguments to function ‘freopen’
freopen("sushi.out", stdout);
^
In file included from user.c:1:0:
/usr/include/stdio.h:279:14: note: declared here
extern FILE *freopen (__const char *__restrict __filename,
^
user.c:21:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.c:23:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !