diff --git a/day01cpp/main.cpp b/day01cpp/main.cpp
index 1eff43ed63a364742b53e1e39a12f0756978e67e..c1468167ebd6bd7c46c829f7bc33624a8c1878ee 100644
--- a/day01cpp/main.cpp
+++ b/day01cpp/main.cpp
@@ -25,13 +25,12 @@ void part_a() {
 
 void part_b() {
     std::ifstream data("data.txt");
+    std::string   line;
+    uint32_t      sum = 0;
 
-    constexpr std::array<std::string_view, 9> numbers
+    static constexpr std::array<std::string_view, 9> numbers
         = { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
 
-    std::string line;
-    uint32_t    sum = 0;
-
     while (std::getline(data, line)) {
         std::pair num_a { 0, line.size() };
         for (size_t index = 0; index < numbers.size(); ++index) {