automated code cleanup

This commit is contained in:
Evan Burkey 2021-12-21 07:02:22 -08:00
parent 61f693f89b
commit 7a78055d06
171 changed files with 612 additions and 594 deletions

View File

@ -3,8 +3,10 @@
#include "lfinput.h" #include "lfinput.h"
#define GRID_SZ 1000
void advent2015day06(void) { void advent2015day06(void) {
char *input = get_input("input/2015/06");
printf("Solution for Day 06 of 2015 is not completed yet\n"); char *input = get_lines("input/2015/06");
free(input); free(input);
} }

View File

@ -3,7 +3,9 @@
#include <string.h> #include <string.h>
#ifdef __linux__ #ifdef __linux__
#include <bsd/stdlib.h> #include <bsd/stdlib.h>
#endif #endif
#include "advent2015.h" #include "advent2015.h"
@ -37,13 +39,27 @@ int main(int argc, char** argv) {
} }
switch (year) { switch (year) {
case 15: solutions2015[day-1](); break; case 15:
case 16: solutions2016[day-1](); break; solutions2015[day - 1]();
case 17: solutions2017[day-1](); break; break;
case 18: solutions2018[day-1](); break; case 16:
case 19: solutions2019[day-1](); break; solutions2016[day - 1]();
case 20: solutions2020[day-1](); break; break;
case 21: solutions2021[day-1](); break; case 17:
solutions2017[day - 1]();
break;
case 18:
solutions2018[day - 1]();
break;
case 19:
solutions2019[day - 1]();
break;
case 20:
solutions2020[day - 1]();
break;
case 21:
solutions2021[day - 1]();
break;
} }
return 0; return 0;