Borderou de evaluare (job #1986948)
Utilizator | Data | 29 mai 2017 12:46:38 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:11:2: warning: passing argument 1 of ‘freopen’ from incompatible pointer type [enabled by default]
freopen(stdin, "fact.in", "r");
^
In file included from user.c:2: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:11:2: warning: passing argument 3 of ‘freopen’ from incompatible pointer type [enabled by default]
freopen(stdin, "fact.in", "r");
^
In file included from user.c:2:0:
/usr/include/stdio.h:279:14: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’
extern FILE *freopen (__const char *__restrict __filename,
^
user.c:12:2: warning: passing argument 1 of ‘freopen’ from incompatible pointer type [enabled by default]
freopen(stdout, "fact.out", "w");
^
In file included from user.c:2: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:12:2: warning: passing argument 3 of ‘freopen’ from incompatible pointer type [enabled by default]
freopen(stdout, "fact.out", "w");
^
In file included from user.c:2:0:
/usr/include/stdio.h:279:14: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’
extern FILE *freopen (__const char *__restrict __filename,
^
user.c:15:2: error: too few arguments to function ‘find_n’
TYPE n = find_n();
^
user.c:6:6: note: declared here
TYPE find_n(TYPE p) {
^
user.c:11:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen(stdin, "fact.in", "r");
^
user.c:12:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen(stdout, "fact.out", "w");
^
user.c:14:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu", &P);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !