diff options
author | Oskar <[email protected]> | 2024-08-10 23:07:32 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-08-10 23:07:32 +0200 |
commit | 2ecf623735023e8fc2a4029e4653f0bd591e6052 (patch) | |
tree | 39ded673699098ea0c14d78101212127e2581729 /3p23.cpp | |
parent | 97df48a5d420072c1ed487b7d5306d1665e692db (diff) |
more
Diffstat (limited to '3p23.cpp')
-rw-r--r-- | 3p23.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -26,7 +26,8 @@ int main () { int random_value = 0; vector<int> ff; - decltype(ff.size()) amount = 10; + decltype(ff.size()) amount = 0; + if(cin >> amount) {} else { return -1; } std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<> distr(1, 10000); |