summaryrefslogtreecommitdiff
path: root/3p23.cpp
diff options
context:
space:
mode:
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);