SIGCONT Error on Life, the Universe and Everything

For the Life, the Universe and Everything exercise I was getting SIGCONT runtime error.
The following is my code. I am not sure why this happened. I read the article on Input and Output but it couldn’t help me.

#include <stdio.h>

int main() {
	int number;

	do {
		scanf("%d", &number);
	} while (number != 42 && printf("%d\n", number));

	return 0;

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

1 Like

Yes, I was. That Hackerrank remark was on point :smile:. I did think that the code will run with test case. Sorry for the trouble and thank you for the help.

1 Like