The definition void main() is not and never has been C++, nor has it even been C.
http://www.stroustrup.com/bs_faq2.html#void-main