[Linker error] undefined reference to `WinMain@16'

I'm using Dev-C++ 4.9.9.2 to compile a program I wrote about five years ago.

I recall that it compiled without errors when I first wrote it.

I had to change a few things, because I guess the code was getting a little old. Anyway, I got rid of all of the errors except this WinMain@16 thing. I've noticed that this can be a problem if you're writing a console program and accidentally have your project set to Windows Program, but I've checked this and it's definitely set as a console program. So now I'm not exactly sure what to do. My code is attached to the bottom of this post...please help if you can!

Re: [Linker error] undefined reference to `WinMain@16'

Chris' fix allowed the code to compile, but the program doesn't do anything with this fix. You undoubtedly have (had?) a main laying around somewhere otherwise it would not have compiled even 5 years ago.