Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <map>
#include <string>
int main() {
std::map<std::string, int> ages = { {"Alice", 25}, {"Bob", 30} };
for (const auto& [name, age] : ages) {
std::cout << name << " is " << age << " years old\n";
}
return 0;
}Coding works best on desktop or with an external keyboard.