This commit is contained in:
Eric Mertens 2024-12-28 15:50:49 -06:00
parent 9041bca378
commit 9a5cd080ef

View File

@ -4,9 +4,12 @@
#include <boost/fusion/adapted/std_tuple.hpp>
#include <boost/spirit/include/qi.hpp>
#include <cstdint>
#include <iostream>
#include <optional>
#include <stack>
#include <tuple>
#include <vector>
namespace qi = boost::spirit::qi;
@ -29,7 +32,7 @@ auto calibrated(
std::vector<std::uint64_t> const& numbers
) -> bool
{
if (numbers.size() == 0) { return false; }
if (numbers.empty()) { return false; }
auto work = std::stack<std::tuple<std::size_t, std::uint64_t>>{};
work.emplace(numbers.size() - 1, target);