I want to separate the input and the output this is MY CONSOLE and I want Like this WANTED OR in seperate files
CodePudding user response:
You can store your answers in a container (vector, array, etc) and print all of them when no new inputs are expected.
Keep in mind that in competitive programming, most of the times the judge doesn't care when you produce your output, unless specifically said so.