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