summaryrefslogtreecommitdiff
path: root/3p23.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-10 23:07:32 +0200
committerOskar <[email protected]>2024-08-10 23:07:32 +0200
commit2ecf623735023e8fc2a4029e4653f0bd591e6052 (patch)
tree39ded673699098ea0c14d78101212127e2581729 /3p23.cpp
parent97df48a5d420072c1ed487b7d5306d1665e692db (diff)
more
Diffstat (limited to '3p23.cpp')
-rw-r--r--3p23.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/3p23.cpp b/3p23.cpp
index 1456495..e991180 100644
--- a/3p23.cpp
+++ b/3p23.cpp
@@ -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);