1) Borland C/C++ is an ancient dinosaur that should be put out of it's misery.
You can upgrade to a 32/64 bit C compiler for free... Pelles C Many 64 bit systems no longer support 16 bit code so there is a very real reason to upgrade.

2) You have two main() functions in your source code, which is a total no-no.