fork download
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. vector<string> s = {"1", "2", "12"};
  8. sort(s.begin(), s.end());
  9. for(auto x:s)
  10. cout << x << " ";
  11. return 0;
  12. }
Success #stdin #stdout 0s 5520KB
stdin
Standard input is empty
stdout
1 12 2