void qinit(int arr[], int len) { for (int i = 0; i < len; i++) { arr[i] = (i + 1) * (i + 1); } }