Borderou de evaluare (job #2910186)
Utilizator | Data | 18 iunie 2022 18:00:08 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'dinamic':
main.c:19:11: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
19 | maxk = max(maxk, d[x + vi[k]][y + vj[k]]+1);
| ^~~
main.c: In function 'main':
main.c:46:31: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
46 | qsort(v+1, n*n, sizeof(int), sortare);
| ^~~~~~~
| |
| int (*)(int *, int *)
In file included from main.c:2:
/usr/include/stdlib.h:831:20: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(int *, int *)'
831 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
/usr/bin/ld: ./ccscUAMi.o: in function `dinamic':
main.c:(.text+0x96): undefined reference to `max'
/usr/bin/ld: main.c:(.text+0xe3): undefined reference to `max'
collect2: error: ld returned 1 exit status
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !