Code works locally but gets gives segmentation fault error here


#1

Is it only with me or this problem frequently arises.


#2

Same problem :frowning:


#3

I was having same problem.
But then, I inserted a cout<<""; somewhere in between code… and Voila ! It’s working ! Got Correct Ans.
Don’t ask why that worked