git clone --recursive https://github.com/benishor/aoc2022.git
./build
#include "solution.h"
class day1 : public aoc::solution {
public:
void run(std::istream& in, std::ostream& out) override {
// Read input data from "in" and write results to "out"
}
void register_tests() override {
add_test({"test name 1", "given input", "expected output"});
add_test({"test name 2", "given input", "expected output"});
...
}
};
int main(int argc, char *argv[]) {
day1 solution;
return solution.execute(argc, argv);
}
./build
./run 1 path/to/input/file