Segmentation Fault on submitting But running it as Custom Input, giving right answer


#1

On an input, whose answer is -1.
I am getting Segmentation Fault on submitting But running it as Custom Input, giving right answer


#2

May be you are using an mutable global variable. your custom tests run on a single thread, but the final tests run on multiple thread, due to which the threads must be accessing a uninitialised memory. So avoid that. It should work.