diff --git a/2024/2/main_pt2.cpp b/2024/2/main_pt2.cpp index 879c660..f5c4ff6 100644 --- a/2024/2/main_pt2.cpp +++ b/2024/2/main_pt2.cpp @@ -77,7 +77,7 @@ int main() { std::vector check; if(i != 0) - check = { group.begin(), group.begin() + i - 1 }; + check = { group.begin(), group.begin() + i }; if(i < group.size() - 1) check.insert(check.end(), group.begin() + i + 1, group.end()); if(GroupSafe(check))