Problem #1 is you have not defined a 5x8 array.
You have defined a 2x9 array [0 to 1][0 to 8].
Each bracketed set of numbers is one 'row' of the matrix.


int[][] array = {
...