From 00b5e86b4be73211e678f5ac4367ca45a1931745 Mon Sep 17 00:00:00 2001 From: Eric Mertens Date: Tue, 4 Apr 2023 08:57:50 -0700 Subject: [PATCH] fix thrown exception --- 2022/14.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/14.cpp b/2022/14.cpp index 8cdea52..77f63bd 100644 --- a/2022/14.cpp +++ b/2022/14.cpp @@ -79,7 +79,7 @@ auto ExpandLines(Input const& lines) -> std::set result.insert({x, a.y}); } } else { - throw new std::runtime_error{"Bad line segment"}; + throw std::runtime_error{"Bad line segment"}; } } }