Why has setting the entry point\'s return type to void in C++ always been discouraged, and was later removed by the standard and is prohibited by modern compile
void
You generally want to know the exit status of your program. That's the reason why you have the int main() -- you return your exit status.
int main()