fork(1) download
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. #include <string>
  7. using namespace std;
  8. int main() {
  9. vector<string> v(100);
  10. v[0] = "apple";
  11. cout<<v[0] << endl;
  12. sort(v[0].begin(),v[0].end());
  13. cout<<v[0];
  14. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
apple
aelpp