I have a code which runs fine on my local compiler but when I try to execute the same code on the codechef console it throws me a segmentation fault. The Interesting thing is it runs fine when I give custom input and run it. The output is also fine. The problem arises only when I try to run it without the custom input.
any sort of help would be appreciated.
Thanks:)