I'm having trouble creating multiple functions and using the cin command to input various values.When trying to run compile the code it states that some of the variables have not been declared in this scope. It also says that the expression list is treated as compound expression in initialiser (-fpermissive).
In the int main() function it also complains about the variables not being declared appropriately either.
Please could somebody help and tell me where I'm going wrong?
* your function definition is not written correctly: float fap (exposure,betaimpact,barraimpact) does not specify the type of its arguments. If you want them to be float, then write: float fap (float exposure, float betaimpact, float barraimpact)
* you have not declared the variables you are using. You also are not using the right syntax to invoke functions. You don't need the parentheses after the return. You don't need to name your returning variables after the function they return from, although you may.