./Main.c: In function ‘main’:
./Main.c:73:8: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%d", &N);
^
./Main.c:75:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%d", &A[i]);
^
./Main.c:78:27: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
qsort(A, N, sizeof(int), compare);
^
In file included from ./Main.c:9:0:
/usr/include/stdlib.h:765:13: note: expected ‘__compar_fn_t {aka int (*)(const void *, const void *)}’ but argument is of type ‘long long int (*)(const void *, const void *)’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^
./Main.c:85:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n", ans);
^
./Main.c:73:2: warning: ignoring return value of ‘s...