The variable was used as an array, but it is not an array.
Change the program so that it does not use the variable as an array.