Runtime Error:Sisgev error

https://www.codechef.com/viewsolution/15924858

This is accepted code of COOK OCT17 but showing runtime error in codechef ide ,can anyone tell me why?

Which test case are you running it against? I think its due to input glitch. Please try again by copy pasting the input again in input box.

@vijju123 I am not giving any input then also it’s showing runtime error.

?!

If you dont give any input then obviously it will give runtime error :confused:

But in this question https://www.codechef.com/problems/TSORT/ ,it’s ahowing successfully executed even if i am am not giving any input.

No input= Array size is a garbage value. It can be 0, a positive integer, or a negative integer- It can also cause undefined behavior in C++.

thanx @vijju123 , you replied within 5 minutes.

cleared my doubt so fast.