Your code did not read all available input

hi, what does it mean?
Warning: your code did not read all available input before printing an instruction, your outputs will not be synchronized with the game’s turns and unexpected behaviour may occur

It means literally that.

Example: You should have read 3 inputs first before you print/output something, and that’s considered 1 game turn. But you print/output your answer after reading only 2 inputs. Then the next input you receive is still for the current turn instead for the next turn.

Another situation where you get this message is when you print your output more than once unnecessarily. For example, you read 3 inputs, and then output twice. In that case you have effectively skipped reading the inputs for the next turn, or you have output too soon.

1 Like