error C2668: 'exp' : ambiguous call to overloaded function
error C2668: 'pow' : ambiguous call to overloaded function
error C2668: 'sqrt' : ambiguous call to overloaded function
The problem is that n is probably an int, and those functions are overloaded to take either doubles or floats, so the compiler can't tell which version it should use (since an int can be converted to both types). And I don't think it's messy at all, though it could use some whitespace around operators.
Lol. Maybe so :)P but n2 = exp(-n)*pow(n,n)*sqrt((157/25)*n); hurts my eyes because it's squashed together. Truthfully, I can't stand code written like that :)