#include <iostream>
#include <unordered_set>
#include <string>
int main() {
std::unordered_set<std::string> colors = {"red", "green", "blue"};
// Inserting elements
colors.insert("yellow");
// Checking for existence
if (colors.find("purple") == colors.end()) {
std::cout << "Purple is not in the set" << std::endl;
}
// Removing an element
colors.erase("green");
// Iterating through the set
for (const auto& color : colors) {
std::cout << color << " ";
}
std::cout << std::endl;
// Size of the set
std::cout << "Number of colors: " << colors.size() << std::endl;
return 0;
}