Array array_name must have a constant size.
When creating a local array, you attempted to use a variable to set the size of the array. Array_name is the array that must have a constant size.
Be sure you're using a constant value when setting the size of a local array.