[Solved] What values are inserted in the set with this C++ code?


When run, x contains in order:

2 4 7 11 12 14 17

y contains in order:

11 2 4 7

My hunch is that the set reverses the operator to check for equality (since a set only contains unique values). Thus only unique values of a%10 exist.

3

solved What values are inserted in the set with this C++ code?