1 | initial version |
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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.
4 | No.4 Revision |
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.