DSA Learning Series Penalty Shoot-Out II Problem Code : PSHOT

Why am i getting Runtime Error SIGSEGV.Although the program is running correctly on manual inputs.

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