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?
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.
?!
If you dont give any input then obviously it will give runtime error
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++.