Hi, I am having a problem with one of my tasks. I am asked to find and display the time required to mow the grass around a house. The house has a square shape and the plot of grass has a rectangular shape. Here is my code. I dont know why but i keep getting this error: error C2447: '{' : missing function header (old-style formal list?) Also the code must contain functions with parameters.
Line 36. double area(double x, double y);
No need for that semicolon, that's a function definition, so remove it.
You put ';' only when you want to declare a function, like in line 4.