I wanna try to use set_new_handler and write the code in the following. However when I compile it, the compiler says count in line 10 and 18 are ambiguous symbols. Why?
This is one of the problems when using usingnamespace std;. It doesn't know if you mean ::count defined on line 7 or std::count defined in <algorithm>. http://en.cppreference.com/w/cpp/algorithm/count