Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. template <class RandomAccessIterator>
  8. void sort (RandomAccessIterator first, RandomAccessIterator last);
  9.  
  10. int main()
  11. {
  12. int n;
  13. vector<string> delfin;
  14. string x;
  15. cin >> n;
  16.  
  17. for(int i=1; i<=n; i++)
  18. {
  19. cin >> x;
  20. delfin.push_back(x);
  21. }
  22.  
  23. sort(delfin.begin(), delfin.end());
  24.  
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement