From 2ecf623735023e8fc2a4029e4653f0bd591e6052 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 10 Aug 2024 23:07:32 +0200 Subject: more --- 3p23.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '3p23.cpp') 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 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); -- cgit v1.2.3