I checked my code on Cb ide and it works fine and shows no runtime error
but while submitting it show run-error.
here is the link to the question
https://hack.codingblocks.com/contests/c/537/1259
code
https://ide.codingblocks.com/s/43842
why it is showing run-error