runtime error while submission

I have written an solution to a problem and compiled it using the online IDE of CodeChef, it shows me that the status is successfully executed but when i submit the same code i am getting an runtime error can someone please help me? Thanks in advance

There is some corner case for which your code goes into runtime error.

what kind of corner case vijju123???

You can share the link for the code if you need help.

Depends on question and size of input. Perhaps you are using too much memory, or perhaps for some values you are accessing index “-1” in array or going out of bounds. Many things exist. We need code to comment anything.

Sometimes we may give input more than required which results in runtime error and accessing the index position more than given also results in the runtime error.