Compiler Error C0048

Message: Array requires exactly '<number>' indexes.

Possible error cause: Too many or too few indexes are specified when using an array.

Error correction: Specify as many indexes as there are dimensions assigned to the array.

Example of the error:

PROGRAM MAIN
VAR
    arr1 : ARRAY[1..2,1..3] OF INT;
END_VAR
arr1[1] := 5;

Message:

C0048: Array requires exactly 2 indexes

Error correction:

arr1[1,2] := 5;