I'm having a similar problem when submitting a solution for TEST,
I haven't included extra messages on the output , yet i got wrong answer
Here's my source code, I would appreciate any help
#include <iostream>
using namespace std;
int main()
{
int number;
while(true)
{
cin >> number;
if(number == 42)
break;
cout << number;
}
}