Info :Compiling C:\BC5\BIN\noname00.cpp
Error: noname00.cpp(1,2):Unable to open include file 'CSTDLIB.H'
Warn : string.h(549,3):Functions containing for are not expanded inline
Warn : string.h(557,3):Functions containing while are not expanded inline
Warn : string.h(563,3):Functions containing for are not expanded inline
Warn : string.h(575,3):Functions containing for are not expanded inline
Warn : string.cc(686,32):Comparing signed and unsigned values
Warn : noname00.cpp(27,6):Conversion may lose significant digits
Warn : noname00.cpp(33,5):Conversion may lose significant digits
Warn : noname00.cpp(36,6):Conversion may lose significant digits
Warn : noname00.cpp(41,5):Conversion may lose significant digits
Warn : noname00.cpp(44,5):Conversion may lose significant digits
Warn : noname00.cpp(47,33):Conversion may lose significant digits
Warn : noname00.cpp(55,5):Conversion may lose significant digits
If I'm correct, that compiler is so old, it probably pre-dates the old C++ standard. it's not surprising it's throwing a wobbly.
That code should compile without warnings, when using a conforming compiler.
In the meantime, maybe you shouldn't use stdlib.h at all, and use "return" rather than "exit()".
When you include <stdlib.h> instead of <cstdlib>, you're mixing in a version that is incompatible with the C++ standard library.
It appears the only reason you have stdlib.h included is exit(). If you don't have a specific reason for using exit(), I suggest using return instead, and not including stdlib.h
Borland C++ 5.02 - (1997)
it's a very old compiler, which is older than c++ 03, which means, you may not be able to use cstdlib. so do not try to use this compiler.