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 TSORT Problem - CodeChef ,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.

Tips to fix-

  1. Restart the computer.
  2. Update the program to its latest version.
  3. Fully delete the program, and then reinstall it.
  4. Install the latest Microsoft Visual C++ Redistributable package.
  5. Use SFC scannow to repair corrupted Windows files.
  6. Run System Restore to return your computer to a previous state.

Regards,
Rachel Gomez