Testcase 1 is giving run error... why?

please explain why run error is coming in my code …also please tell me what is run error …how it comes and how to avoid it ??

@Ignitor hey kartik this may be because of range problem for better reason can I see your implementation.

How can i share my code

@Ignitor hey kartik using ide.codingblocks.com