fork download
  1. #include <iostream>
  2.  
  3. #include <vector>
  4. #include <map>
  5. #include <string>
  6.  
  7.  
  8. int main()
  9. {
  10. using namespace std;
  11. vector<pair<string, string>> pairs = { {"govno", "shit"}, {"kod", "code"} };
  12. map<string, string> res { pairs.begin(), pairs.end() };
  13.  
  14. for (auto && mapPair : res) {
  15. cout << mapPair.first << ": " << mapPair.second << endl;
  16. }
  17.  
  18. return EXIT_SUCCESS;
  19. }
  20.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
govno: shit
kod: code