Add generate_days script

- Add generate_days script to generate templated files for an advent of
  code year.
- Optimize the fetch.sh script (remove awk usage)
This commit is contained in:
Thraix
2026-07-25 19:57:11 +02:00
parent 6a3a1c9dc1
commit a9ac1c2c98
5 changed files with 59 additions and 8 deletions
+31
View File
@@ -0,0 +1,31 @@
#include "common/aoc.h"
namespace y$1::day$2
{
REGISTER_DAY($1, Day$2, std::vector<int>, int);
REGISTER_TEST_EXAMPLE($1, Day$2, ExampleInput, 1, 0);
REGISTER_TEST($1, Day$2, Input, 1, 0);
REGISTER_TEST_EXAMPLE($1, Day$2, ExampleInput, 2, 0);
REGISTER_TEST($1, Day$2, Input, 2, 0);
READ_INPUT(input)
{
std::vector<int> vec;
std::string str;
while (getline(input, str))
{
}
return vec;
}
OUTPUT1(input)
{
return 0;
}
OUTPUT2(input)
{
return 0;
}
}