fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4.  
  5. int main() {
  6. std::map <std::string, int> _map = {
  7. {"Носки", 5 },
  8. {"Батарея стиль BMW", 1 },
  9. {"Шайтан апаратупа", 12}
  10. };
  11. for(auto &element : _map){
  12. std::cout << element.first << " | " << element.second << std::endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5392KB
stdin
Standard input is empty
stdout
Батарея стиль BMW | 1
Носки | 5
Шайтан апаратупа | 12