The type of the expression must be an array type but it resolved to int

yes, now there is not any error message. When I have time, I will test it, if it is working well.
Thanks