fix thrown exception
This commit is contained in:
@@ -79,7 +79,7 @@ auto ExpandLines(Input const& lines) -> std::set<aocpp::Coord>
|
|||||||
result.insert({x, a.y});
|
result.insert({x, a.y});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new std::runtime_error{"Bad line segment"};
|
throw std::runtime_error{"Bad line segment"};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user