int **split_array(const int *s, int length) {
    int **result = malloc(2 * sizeof(int*));
    int odd_len;
    int even_len = length / 2;
    if (length % 2 == 0) {
        odd_len = length / 2;
    } else {
        odd_len = (length / 2) + 1;
    }
    int *odd = malloc(odd_len * sizeof(int));
    int *even = malloc(even_len * sizeof(int));
    for (int i = 0; i < length; i++) {
        if (i % 2 == 0) {
            even[i / 2] = s[i];
        } else {
            odd[i / 2] = s[i];
        }
    }
    *result[0] = *odd;
    *result[1] = *even;

    return result;
}
