Getting runerror

https://hack.codingblocks.com/submission/582192


Guys I am getting run error…
can you tell me why i am getting thishere’s my code for divisible subarray
updated ideone link.

Submissions are Private.Copy Paste your code on Coding Blocks Ide and then share your link.

https://cb.lk/undefined