Oops. .end() is one past the end, so get rid of the -1.
This commit is contained in:
parent
40c9bd5e50
commit
f3e0917a38
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user