set.insert() returns an iterator to the location and it has been using equality sign with a pair. The answer should be compilation error then
Quiz1 STL Question 13
Can you please send the screenshot of the question so that i can see it.
According to http://www.cplusplus.com/reference/set/set/insert/
“returns a pair, with its member pair::first set to an iterator pointing to either the newly inserted element or to the equivalent element already in the set. The pair::second element in the pair is set to true if a new element was inserted or false if an equivalent element already existed.”