I have been trying to compile this code with no avail.
I am using windows XP and DEV C++. It's a long code but I have posted the first part of it below:
# include <iostream>
# include <cmath>
# include <fstream>
This error statement applies to the last line posted (with double curly brackets) I have tried removing one or both brackets but the errors only increased.
You open main with one curly brace...and close it with two!? You only need to close it with one curly brace. It should have compiled when you removed the extra one...
If I don't remove the one extra curly brace I get one error; the one I posted above. If I do remove it, however, I get 9 errors (code below the double curly braces). Weird...I don't know what's wrong..
What...you have code below main and you did not post it? All those errors are on lines you have not whown us. The reason the }} gives one error is because it stops trying to compile after that (hence the 'Execution terminated'). After you fix that error, it continues to compile and you see a load more errors.
The problem is not in what you have shown us. The problem is in the code you have not shown us.
The line number indicates how far the compiler gets before having to give up completely. Sometimes that is the line with the problem on. Sometimes not. In this case; not.