Oops. .end() is one past the end, so get rid of the -1.

This commit is contained in:
David Vereb 2024-12-03 09:45:29 -05:00
parent 40c9bd5e50
commit f3e0917a38

View File

@ -77,7 +77,7 @@ int main()
{
std::vector<long> 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))