Only one test case passing

https://ide.codingblocks.com/s/387576 what i did was generated a csum subarray and then divided each element with the number of elements in array and then the number which got divided were added in the final answer

for test case:
1
5
-1 -3 -2 -6 -4
output:
3