fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4. #include <vector>
  5. using namespace std;
  6.  
  7. int main() {
  8. map<string,string> mymap_fast_alert{{"a","A"},{"b","B"},{"c","C"}};
  9. vector<string> choices;
  10. for(auto it1 : mymap_fast_alert)
  11. choices.push_back (it1.second + " |" + it1.first);
  12.  
  13. for(auto choice : choices)
  14. cout << choice << endl;
  15. }
Success #stdin #stdout 0s 3232KB
stdin
Standard input is empty
stdout
A |a
B |b
C |c