diff --git a/2024/07.cpp b/2024/07.cpp index 474d819..b80dcc3 100644 --- a/2024/07.cpp +++ b/2024/07.cpp @@ -53,11 +53,11 @@ auto calibrated( if (i == 0) { if (x == t) { return true; } } else { - ([&](auto const op) { + for (auto const op : {ops...}) { if (auto const u = op(t, x)) { work.emplace(i - 1, *u); } - }(ops), ...); + } } }