Update c++ set operations

Attempted to make code compilable