Getting SIGCONT runtime error while running "Life, The Universe, and Everything" problem

my code is as follows:

#include <bits/stdc++.h>
using namespace std;

int main()
int val;
cin>> val;
while(val != 42){
cout<< val;
cin>> val;
return 0;

getting SIGCONT error while running the above code in codechef ide.
I don’t know what’s wrong in this simple code. Please help!!!

Are you trying to “Run” without Providing “Custom Input”?

U must have tried to run this code without custom input as it may take some values which can exceed the int limit.


yes, i didn’t provide custom input


oh, i got it. Thanks a lot for your time.