wine.c: In function 'main':
wine.c:25:29: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
qsort(arr, N, sizeof(int), compare);
^
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:20:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &K);
^
wine.c:23:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &arr[i]);
^