In addition to the missing using namespace std...
You have semicolons after some of your while statements. This is legal, but it has the effect of making the loop do nothing until the condition is met. And since there's nothing that changes the variables in those conditions... either your loops won't run, or they'll run forever.
Also, line 30 uses the wrong equals and line 15 should probably be a <.
Finally, I'm going to strongly recommend that you ditch Borland C++. That bit of software is a fossil, and C++ has changed considerably since the Embarcadero toolchain was last called "Borland C++".
https://isocpp.org/get-started
You can have it go (roughly) second by second by adding in a one-second delay, but it's probably better to cross that bridge once the program works otherwise.
@Cannor
Welcome! Just a heads up, having global variables is something we generally try to avoid promoting here. Those variables can be global, but shouldn't be.
-Albatross