What is run error?

hi sir,
here is my code >>> https://ide.codingblocks.com/s/476173

sir, in this code compiler pass 6 test case but in one case it is showing run error.
what is the meaning of run error ?

and how can i solve it?
please refer any better solution. if any there, of this code also.

hello @r_kumar_17

make ur array size 1000 and then try.

no this is efficient solution for the given problem