News for hackers. Stuff that matters.
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by pjmlp on Sunday October 30, 2022 @10:15AM (#33394684)
In C yes, on C++ it is required to return 0 if omited.
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by garaetjjte on Sunday October 30, 2022 @10:25AM (#33394744)
C99 also defines it:

>5.1.2.2.3 Program termination [...] reaching the } that terminates the main function returns a value of 0.

Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik... by pjmlp on Sunday October 30, 2022 @11:31AM (#33395294)
Thanks for the heads up, than it sums it up either the OP was using a broken implementation, or the incorrect language version.