Look at lines 2 and 3 - it is blindingly obvious.
Other error: you are using the keyword 'return' as variable name
Thank you, I was able to fix it but I don't know why removing the extraneous semi-colon and the 'using namespace std;' line fixes that error.
The function body shouldn't be separed from its head
Think that this is like typing int i; using namespace std; = 5;
instead of int i = 5;
Last edited on