aboutsummaryrefslogtreecommitdiff
path: root/cpp/nissy.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpp/nissy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp
index 3c41733..118a072 100644
--- a/cpp/nissy.cpp
+++ b/cpp/nissy.cpp
@@ -179,7 +179,8 @@ namespace nissy {
179 179
180 std::string_view strsols(csols.data()); 180 std::string_view strsols(csols.data());
181 for (auto r : strsols | std::views::split('\n')) 181 for (auto r : strsols | std::views::split('\n'))
182 if (r.begin() != r.end()) 182 if (r.begin() != r.end() ||
183 r.begin() == strsols.begin())
183 result.solutions.push_back( 184 result.solutions.push_back(
184 std::string{r.begin(), r.end()}); 185 std::string{r.begin(), r.end()});
185 186

Generated with cgit - Back to sebastiano.tronto.net