#include <stdlib.h>
// BEGIN PROMPT
/**
Given an array, reset the values to 0 in the array, starting from the given begin index and resetting the given count number of values. Use memset to reset the values.

@param values: the array of values
@param begin_index: the index to start resetting values
@param count: the number of values to reset
*/
void set_values_in_arr(long long* values, int begin_index, int count) {
    // BEGIN SOLUTION
    memset(values + begin_index, 0, count * sizeof(long long));
}

// BEGIN ENTRYPOINT
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
    // ./a.out <begin_index> <count>
    long long nums[] = { 1000, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };

    if (argc < 3) {
        printf("Usage: %s <begin_index> <count>\n", argv[0]);
        return 1;
    }

    int begin_index = atoi(argv[1]);
    int count = atoi(argv[2]);

    set_values_in_arr(nums, begin_index, count);

    for (int i = 0; i < sizeof(nums) / sizeof(long long); i++) {
        printf("%lld ", nums[i]);
    }

    return 0;
}
