wine.c: In function 'main':
wine.c:14:30: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
qsort(wine, N, sizeof(int), compare_func);
^
In file included from wine.c:2:0:
/usr/include/stdlib.h:764:13: note: expected '__compar_fn_t {aka int (*)(const void *, const void *)}' but argument is of type 'int (*)(void *, void *)'
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^
wine.c:11:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &K);
^
wine.c:13:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &wine[i]);
^