Are the array elements in order like is A[0] = 5? I'm trying to help but this might clear it up for me.

edit :
There is an error on (Int A[]){ it should be (int A[]){

--- Update ---

Alright...