Main.cc: In function ‘int main()’:
Main.cc:12:24: error: ‘cmp’ was not declared in this scope
qsort(a,n,sizeof(int),cmp);
^~~
Main.cc:12:24: note: suggested alternative: ‘bcmp’
qsort(a,n,sizeof(int),cmp);
^~~
bcmp
Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&s);
~~~~~^~~~~~~~~~~~~~
Main.cc:11:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~