aboutsummaryrefslogtreecommitdiff
path: root/challenge-080/ash/cpp/ch-1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-080/ash/cpp/ch-1.cpp')
-rw-r--r--challenge-080/ash/cpp/ch-1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-080/ash/cpp/ch-1.cpp b/challenge-080/ash/cpp/ch-1.cpp
index e006218f32..278833993b 100644
--- a/challenge-080/ash/cpp/ch-1.cpp
+++ b/challenge-080/ash/cpp/ch-1.cpp
@@ -18,7 +18,7 @@ int missing_n(vector<int> n) {
if (x > max) max = x;
}
- for (auto c = 1; c <= max ; c++) {
+ for (auto c = 1; c < max; c++) {
if (!v[c]) {
return c;
break;