#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
typedef std::vector<std::string> Strings;
Strings strings = { "world", "good bye", "hello", "aloha" };
sort(strings.begin(), strings.end());
for (Strings::iterator it = strings.begin(); it != strings.end(); ++it) cout << *it << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl0eXBlZGVmIHN0ZDo6dmVjdG9yPHN0ZDo6c3RyaW5nPiBTdHJpbmdzOwoJU3RyaW5ncyBzdHJpbmdzID0geyAid29ybGQiLCAiZ29vZCBieWUiLCAiaGVsbG8iLCAiYWxvaGEiIH07Cglzb3J0KHN0cmluZ3MuYmVnaW4oKSwgc3RyaW5ncy5lbmQoKSk7Cglmb3IgKFN0cmluZ3M6Oml0ZXJhdG9yIGl0ID0gc3RyaW5ncy5iZWdpbigpOyBpdCAhPSBzdHJpbmdzLmVuZCgpOyArK2l0KSBjb3V0IDw8ICppdCA8PCAiXG4iOwoJcmV0dXJuIDA7Cn0K