Why isn't this code working? I am getting an error in main with the statement "hash armon". It is saying that reference to hash is ambiguous. What does it mean?
This is why usingnamespace std; is bad. There is a std::hash function, and by bringing it into global scope you have no way to differentiate between the function and your class. Do not use usingnamespace std;