Divisible subarrays:second test case not passing(showing runtime error) please help

https://ide.codingblocks.com/s/64208

hey Sindhu, there some mistakes in you code like the size of array, and you have not considered the case when sum becomes negative.
i have made some changes in your code,
https://ide.codingblocks.com/s/64219