#include <iostream>
#include <string>
#include <vector>
#include <ctime>
using namespace std;
int main()
{
srand(time(0));
string numbers = ("");
vector<string> holdNumbers;
bool getNumberLoopEnd = false;
int loopCounter = 0;
for (auto i = 0; i < 5; i++)
{
while(getNumberLoopEnd != true)
{
for(int i = 0; i < 7; i++)
{
numbers = '0' + rand() % 10;
//cout << numbers;
}
holdNumbers.push_back(numbers);
loopCounter++;
if(loopCounter == 7)
{
break;
}
}
for(int i = 0; i < 7; i++)
{
cout << holdNumbers[i];
}
cout<< '\n';
numbers = "";
holdNumbers.clear();
getNumberLoopEnd = false;
loopCounter = 0;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8Y3RpbWU+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgoKaW50IG1haW4oKQp7CglzcmFuZCh0aW1lKDApKTsKCXN0cmluZyBudW1iZXJzID0gKCIiKTsKICAgIHZlY3RvcjxzdHJpbmc+IGhvbGROdW1iZXJzOwogICAgYm9vbCBnZXROdW1iZXJMb29wRW5kID0gZmFsc2U7CiAgICBpbnQgbG9vcENvdW50ZXIgPSAwOwogICAgCglmb3IgKGF1dG8gaSA9IDA7IGkgPCA1OyBpKyspCgl7CiAgICAgICAgd2hpbGUoZ2V0TnVtYmVyTG9vcEVuZCAhPSB0cnVlKQogICAgICAgIHsKICAgICAgICAgICAgZm9yKGludCBpID0gMDsgaSA8IDc7IGkrKykKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbnVtYmVycyA9ICcwJyArIHJhbmQoKSAlIDEwOwogICAgICAgICAgICAgICAgLy9jb3V0IDw8IG51bWJlcnM7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaG9sZE51bWJlcnMucHVzaF9iYWNrKG51bWJlcnMpOwogICAgICAgICAgICBsb29wQ291bnRlcisrOwogICAgICAgICAgICBpZihsb29wQ291bnRlciA9PSA3KQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgZm9yKGludCBpID0gMDsgaSA8IDc7IGkrKykKICAgICAgICB7CiAgICAgICAgICAgIGNvdXQgPDwgaG9sZE51bWJlcnNbaV07CiAgICAgICAgfSAKICAgICAgICBjb3V0PDwgJ1xuJzsKICAgICAgICBudW1iZXJzID0gIiI7CiAgICAgICAgaG9sZE51bWJlcnMuY2xlYXIoKTsKICAgICAgICBnZXROdW1iZXJMb29wRW5kID0gZmFsc2U7CiAgICAgICAgbG9vcENvdW50ZXIgPSAwOwogICAgfQp9