./Main.c: In function ‘main’:
./Main.c:23:24: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
qsort(a,N,sizeof(int),comp);
^
In file included from ./Main.c:2:0:
/usr/include/stdlib.h:765:13: note: expected ‘__compar_fn_t {aka int (*)(const void *, const void *)}’ but argument is of type ‘int (*)(const int *, const int *)’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^
./Main.c:19:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&H);
^
./Main.c:22:30: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < N; ++i) scanf(" %d%d",&a[i],&b[i]);
^