4 ms·Both versions are supposed to return an int but neither has a return statement. Is that not an error?by criddell 4y agoBoth versions are supposed to return an int but neither has a return statement. Is that not an error?e4m2 4y agoThe main function returns zero implicitly if control flow reaches the end without encountering a return statement.LeSaucy 4y agoIt wouldn't be C++ without undefined behaviour.