Borderou de evaluare (job #2910150)
Utilizator | Data | 18 iunie 2022 16:46:30 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:1: warning: ignoring '#pragma warning ' [-Wunknown-pragmas]
1 | #pragma warning(disable:4996)
|
main.c: In function 'dinamic':
main.c:21:11: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
21 | maxk = max(maxk, d[x + vi[k]][y + vj[k]]+1);
| ^~~
main.c: In function 'main':
main.c:48:31: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
48 | qsort(v+1, n*n, sizeof(int), sortare);
| ^~~~~~~
| |
| int (*)(int *, int *)
In file included from main.c:4:
/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: ./cc85eQni.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 !