Why am i getting Runtime Error SIGSEGV.Although the program is running correctly on manual inputs.
https://www.codechef.com/viewsolution/41990870