Ask Your Question

Revision history [back]

That error is caused due to your function name "distance" is conflict with some function having the same name from std (see more at http://stackoverflow.com/questions/4217733/distance-calculation-error-in-c). To solve that, simply change your function names to "mydistance" or some other names.

That error is caused due to your function name "distance" is conflict with some function having the same name from std (see more at http://stackoverflow.com/questions/4217733/distance-calculation-error-in-c). To solve that, simply change your function names to "mydistance" or (or some other names.names) or remove statement using namespace std; from you file scope, just using what you exactly need from std namespace.

That error is caused due to your function name "distance" is conflict with some function having the same name from std (see more at http://stackoverflow.com/questions/4217733/distance-calculation-error-in-c). To solve that, simply change your function names to "mydistance" (or some other names) or remove statement "using namespace std; std;" from you file scope, just using what you exactly need from std namespace.

That error is caused due to your function name "distance" is conflict with some function functions having the same name from std (see more at http://stackoverflow.com/questions/4217733/distance-calculation-error-in-c). To solve that, simply change your function names to "mydistance" (or some other names) or remove statement "using namespace std;" from you file scope, just using what you exactly need from std namespace.