I also got the same error which got resolved when I flushed my output after printing each output and replaced cout<<“\n” with cout<<endl. The following link helped me : Interactive Problems and the way to deal with them!
1 Like