Why is the output expected changing to Nothing?

When I am introducing spaces using cout<<arr[i]<<" " in the last for loop, the output screen expected changes to “Nothing”. Its been happening every time there is a space included in output screens.

Imgur

Your output has to exactly match what the server expects - you are sending too much data (it was expecting the end of your output but you kept sending data).

The change you describe would output "2 4 5 7 9 " and it expects “2 4 5 7 9”. The server is happy with your output until it finds an extra space at the end.

1 Like