Where'd you get void main() from? I guess this is something you've been taught. While the Borland compiler does permit it, I suggest you unlearn it and use "int main(void)" always.
The blame for this doesn't entirely lay at Borland's feet. MSVC++ will also happily allow you to use void main() as a prototype, although under the covers it converts it to int main().