1234
for(int i =0; i < word.size(); ++i) { word.at(i) = map.at(word.at(i) - 'a'); } cout << "Encrypted word: " << word << endl;