day8
parent
5831764473
commit
b7c8125094
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(Advent-Of-Code-2024 VERSION 0.0.7)
|
||||
project(Advent-Of-Code-2024 VERSION 0.0.8)
|
||||
|
||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||
|
|
|
@ -86,9 +86,8 @@ namespace day8
|
|||
{
|
||||
if (i == x && y == j)
|
||||
continue;
|
||||
const auto current = get(i, j);
|
||||
|
||||
if (compare == current)
|
||||
if (compare == get(i, j))
|
||||
{
|
||||
const int dist_x = i - x;
|
||||
const int dist_y = j - y;
|
||||
|
|
Loading…
Reference in New Issue