You cannot allocate a dynamic array in the C90 like this. You will have to dynamically allocate it using malloc as follows:
int* array = (int*) malloc(sizeof(int) * size);
You also index arrays starting with 0, not 1, so the for loop should start like this:
for(int i = 0; i < size; i++)
malloc, , :
free(array);