#include <random>
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
int main()
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> dis(1, 9);
std::vector<int> array(5);
std::generate(array.begin(), array.end(),
[&](){ return dis(gen); });
std::sort(array.begin(), array.end());
for (int i : array) {
std::string str = "string" + std::to_string(i);
std::cout << str << '\n';
}
}
I2luY2x1ZGUgPHJhbmRvbT4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnJhbmRvbV9kZXZpY2UgcmQ7CiAgICBzdGQ6Om10MTk5MzcgZ2VuKHJkKCkpOwogICAgc3RkOjp1bmlmb3JtX2ludF9kaXN0cmlidXRpb248PiBkaXMoMSwgOSk7CgogICAgc3RkOjp2ZWN0b3I8aW50PiBhcnJheSg1KTsKICAgIHN0ZDo6Z2VuZXJhdGUoYXJyYXkuYmVnaW4oKSwgYXJyYXkuZW5kKCksCiAgICAgICAgWyZdKCl7IHJldHVybiBkaXMoZ2VuKTsgfSk7CiAgICBzdGQ6OnNvcnQoYXJyYXkuYmVnaW4oKSwgYXJyYXkuZW5kKCkpOwoKICAgIGZvciAoaW50IGkgOiBhcnJheSkgewogICAgICAgIHN0ZDo6c3RyaW5nIHN0ciA9ICJzdHJpbmciICsgc3RkOjp0b19zdHJpbmcoaSk7CiAgICAgICAgc3RkOjpjb3V0IDw8IHN0ciA8PCAnXG4nOwogICAgfQp9