Borderou de evaluare (job #1172410)
Utilizator | Data | 17 aprilie 2014 14:55:56 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘cmp’:
user.c:13:23: warning: dereferencing ‘void *’ pointer [enabled by default]
return((muchie *)a->cost < (muchie *)b->cost);
^
user.c:13:23: error: request for member ‘cost’ in something not a structure or union
user.c:13:43: warning: dereferencing ‘void *’ pointer [enabled by default]
return((muchie *)a->cost < (muchie *)b->cost);
^
user.c:13:43: error: request for member ‘cost’ in something not a structure or union
user.c: In function ‘main’:
user.c:37:5: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [enabled by default]
qsort(graf,m,sizeof(muchie),cmp);
^
In file included from user.c:1:0:
/usr/include/stdlib.h:756:13: note: expected ‘__compar_fn_t’ but argument is of type ‘int (*)(void *, void *)’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^
user.c:39:9: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
int c[200000];
^
user.c: In function ‘cmp’:
user.c:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !