#include <iostream>
#include <vector>
std::vector<int> NumArray(int s)
{
std::vector<int> out;
for(int n, i = 0; i < s; ++i)
if(std::cin >> n)
out.push_back(n);
return out;
}
const int size = 5;
int main()
{
std::cout << "Enter Values: \n";
std::vector<int> values = NumArray(size);
std::cout << "Values: ";
for(int n: values)
std::cout << n << ' ';
std::cout << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKc3RkOjp2ZWN0b3I8aW50PiBOdW1BcnJheShpbnQgcykKewogICAgc3RkOjp2ZWN0b3I8aW50PiBvdXQ7CiAgICBmb3IoaW50IG4sIGkgPSAwOyBpIDwgczsgKytpKQogICAgICAgIGlmKHN0ZDo6Y2luID4+IG4pCiAgICAgICAgICAgIG91dC5wdXNoX2JhY2sobik7CiAgICByZXR1cm4gb3V0Owp9Cgpjb25zdCBpbnQgc2l6ZSA9IDU7CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6Y291dCA8PCAiRW50ZXIgVmFsdWVzOiBcbiI7CiAgICBzdGQ6OnZlY3RvcjxpbnQ+IHZhbHVlcyA9IE51bUFycmF5KHNpemUpOwogICAgc3RkOjpjb3V0IDw8ICJWYWx1ZXM6ICI7CiAgICBmb3IoaW50IG46IHZhbHVlcykKICAgICAgICBzdGQ6OmNvdXQgPDwgbiA8PCAnICc7CiAgICBzdGQ6OmNvdXQgPDwgJ1xuJzsKfQo=