fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <list>
  4. using namespace std;
  5.  
  6. int main() {
  7. std::list<std::string> list {"the", "the", "friend", "hello", "the"};
  8. list.sort();
  9. for( auto const& str : list )
  10. {
  11.  
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout

Standard output is empty