Here I have this class and am trying to calculate a distance and I keep getting an overload function error. I have tried type casting, and have tried solving the problem a different way but can't seem to get rid of the error. Any help is greatly appreciated!
If you're including <cmath>, try making it std::sqrt(n) instead of just sqrt().
That might fix the other problem too, I'm not sure what would be causing the name conflict for you though.