No description
Find a file
2025-12-26 14:47:44 -05:00
day3.cpp feat: 2024day3p1 done! 2025-12-23 21:31:55 -05:00
day3p2.cpp feat: p2 2025-12-26 14:47:44 -05:00
README.md feat: p2 2025-12-26 14:47:44 -05:00

AOC2024 day3

took me some time but here is aoc 2024 day 3 in C++ metaprog! also this is only p1, (and with how fast im going, see you next year for p2)

it requires C++17. I could only do it thanks to Nelson Elhage, and his day 1 writeup for aoc 2023.

compilation

c++ -std=c++17 ./day3.cpp -o day3.o

If a input.txt is found in the same directory, and you compiled it with -DINPUT it will use it as input.

you can play with -ftemplate-depth if needed but beware, the compile time is likely to be exponential to that number.