Dividing array greedy

it runs for given test case but I am getting wrong answer


Please tell where I am wrong

@avinashmallik2017,
Try your code on this,

Input
1
4
12 3 10 0

Output
-19 19