Assuming that you have only fixed the broken lined string literals...
These errors are pretty self-explanatory. If the compiler says missing ';' then put in the missing semi-colon. It even tells you what line they are missing from.
"geometry.h:26: error: too many arguments to function âint VolDonut(float)â"
This literally means, too many arguments. Look at VolDonut(float r). It only takes 1 argument and you are trying to call it with too many on line 26.
"geometry.h:8: error: âsqrtâ was not declared in this scope"
sqrt is not declared anywhere. You probably forgot to include <cmath>, which is a library containing the square root function with that syntax.
Everywhere it says ISO forbits naming <some name or other> with no type, give them a type. If you're returning floats, then obviously that is the type you need.
Anyway, sorry, I feel like I'm being a bit short with this post, but you have to learn to read these errors dude. The compiler often gives lots of information about what the error is and a line number where it thinks the error is. These error messages are things you are going to see time & time again and you need to be able to think for yourself and sort most of them out yourself.
Also, if you ask on the forum a question, don't say you still get errors, tell us what errors, show us the piece of code you think the error is in.
but i still get geometry.h errors do you know what i am missing |