Line 17 - don't use assignment (=), test equality (==).
Line 10, 15, 21; A function can only return one value. The , operator isn't doing what you think it's doing, you shouldn't be trying to return more than 1 value.
Line 43 - Maybe you know this, but you should realize that this is a being seen by the compiler as just a function prototype. Line 43 doesn't run your function.
Line 47, why are you passing in the addresses of a b and c?
If you meant to use C++ references, you need to format your level function to be double level(double& a, double& b)