Invalid array reference

You have specified too many or too few dimensions when referencing a array. The number of dimensions should match the declaration of the array. Example:

int a[30, 20]       ; two-dimensional array declared
a[30] = 2           ; too few dimensions
a[3, 2, 1] = 5      ; too many dimensions

See Also
Arrays
Errors