Facing compilation error while submitting the code in the code chef

Hey i have changed array to vector and it is working fine.Don’t know why it was not working for array though.