fork(1) download
  1. #include <boost/range/adaptor/map.hpp>
  2. #include <iostream>
  3. #include <map>
  4.  
  5. std::map<int, const char*> makeMap()
  6. {
  7. return {
  8. {1, "one"},
  9. {2, "two"},
  10. {3, "three"},
  11. {4, "four"},
  12. {5, "five"},
  13. };
  14. }
  15.  
  16. int main()
  17. {
  18. for (const char* value : makeMap() | boost::adaptors::map_values)
  19. {
  20. std::cout << " " << value;
  21. }
  22. std::cout << std::endl;
  23. }
Time limit exceeded #stdin #stdout 5s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty