Borderou de evaluare (job #1020113)
Utilizator | Data | 1 noiembrie 2013 18:29: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:13:17: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
v = (struct gutui*)calloc(*N,sizeof(struct gutui));
^
user.c:13:24: warning: incompatible implicit declaration of built-in function ‘calloc’ [enabled by default]
v = (struct gutui*)calloc(*N,sizeof(struct gutui));
^
user.c:10:9: warning: unused variable ‘max_gutui’ [-Wunused-variable]
int max_gutui,i;
^
user.c: In function ‘scrieDate’:
user.c:22:6: error: ‘f’ undeclared (first use in this function)
*f = fopen("gutui.out","w");
^
user.c:22:6: note: each undeclared identifier is reported only once for each function it appears in
user.c:23: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:23: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,
^
user.c: In function ‘main’:
user.c:30:22: warning: incompatible implicit declaration of built-in function ‘calloc’ [enabled by default]
vecGutui = (int*)calloc((H/U+1),sizeof(int));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !