Is it only with me or this problem frequently arises.
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