#include <iostream>
#include <unordered_map>
#include <string>
using std::string;
using std::cout;
using std::endl;
int main()
{
std::unordered_map<string, int> workers({{ "Liam ", 45}, { "Logan", 37}, { "Ethan", 51}});
std::unordered_map<std::string, int> w2(workers.begin(), workers.end());
for (std::pair<std::string, int> element : w2)
cout << element.first << " - " << element.second << endl;
return 0;
}
/*
run:
Liam - 45
Logan - 37
Ethan - 51
*/