That creates a 6x6 array with each element initialized to
You only set the first three columns of the first three rows, and the first two columns of the fourth row. All other values retain their default value of
You then try to add an
, which is not a supported operation.
Change your array declaration to:
and your code will run successfully. Whether or not it produces the expected answer is up to you - I'd suggest you need to review your array initialization code, since you're not setting every element, and you're setting some elements twice.