elixir update map

#include <iostream>
#include <map>

int main() {
    // Step 1: Create a map
    std::map<int, std::string> myMap = {{1, "one"}, {2, "two"}, {3, "three"}};

    // Step 2: Print the original map
    std::cout << "Original Map: ";
    for (const auto& pair : myMap) {
        std::cout << "{" << pair.first << ": " << pair.second << "} ";
    }
    std::cout << std::endl;

    // Step 3: Update a value in the map
    myMap[2] = "new_two";

    // Step 4: Print the updated map
    std::cout << "Updated Map: ";
    for (const auto& pair : myMap) {
        std::cout << "{" << pair.first << ": " << pair.second << "} ";
    }
    std::cout << std::endl;

    return 0;
}