Yesterday, in CF Round 366 my friend Birjik encountered a strange problem. His correct code was receiving Runtime Error in sample case.
As you can notice, one code has these lines:
Strange, isn't it?
As I have understood, this happens because of an array called read.
Renaming that array solves this problem.
Long story short, using ios_base / cin.tie receives runtime error if we have a variable named read in our code.