-3

When i tried to call a function in c++ ,it shows an ambiguous error,How can I solve this ?

enter image description here

Jason
  • 36,170
  • 5
  • 26
  • 60

1 Answers1

0

Due to using the using namespace std; You have an intersection with the std::greater. This is the very lesson when you can understand that it is not advisable to use using namespace std;

AlexZel
  • 83
  • 1
  • 5