fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <utility>
  4. int main()
  5. {
  6. std::map < int, int > m1;
  7. std::map < int, int > m2(m1);
  8. std::map < int, int > m3 = m1;
  9.  
  10. typedef struct std::pair < int, int > PAIR;
  11. //std::map < int, int > m1;
  12. m1.insert(PAIR(0, 10));
  13. m1.insert(PAIR(1, 20));
  14. //std::map < int, int > m2(m1.begin(), m1.end());
  15. system("pause");
  16. return 0;
  17. }
  18.  
  19.  
Success #stdin #stdout #stderr 0s 4164KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
sh: 1: pause: not found