#include <stdlib.h> int cmp(const void* a, const void* b) { return *(int*)a-*(int*)b; } int main() { int n,count,i,j; scanf("%d", &n); int arr1[n]; count = 0; for(i = 0; i < n; i++) { scanf("%d", &arr1[i]); } qsort(arr1, n, sizeof(int), ...