I run the following code. errors I got are: invalid types array subscripts is there any mistake in using the constructor? while i run it normally without using any construct