Always start small. Denis Ritchie created C and wrote the famous "Hello, World!" program. It only consists of a few lines and just outputs Hello, World!. But it is enough to determine if your compiler and associated tool chain is working. The way it would have benifited you in the example above is that it would have compiled and ran. At that point you would have known your C++ installation was functional and OK. Then, upon attempting to compile the larger program you would have gotten piles of compilation errors. The diagnostic value of this would have been you would have then known your compiler and installation was OK, but there is something wrong with the program itself. At that point you would read the first one or two error messages to determine what the problem was. This might seem trite but it is a lesson hard acquired by me.
My first program was "hello world!" and it compiled fine with my setup.
I then created other simple programs and they compiled fine too in Windows and Cygwin.
But I know I'm sure that this current program that I'm working with maybe a possible bug is not syntax related.
Is the syntax correct? Because there is a skip in a single part in the program.