49 lines
710 B
C++
49 lines
710 B
C++
|
#include <ctype.h>
|
||
|
#include <inttypes.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
using i8 = int8_t;
|
||
|
using i16 = int16_t;
|
||
|
using i32 = int32_t;
|
||
|
using i64 = int64_t;
|
||
|
|
||
|
using u8 = uint8_t;
|
||
|
using u16 = uint16_t;
|
||
|
using u32 = uint32_t;
|
||
|
using u64 = uint64_t;
|
||
|
|
||
|
i64 puzzle1(FILE* fp)
|
||
|
{
|
||
|
(void)fp;
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
i64 puzzle2(FILE* fp)
|
||
|
{
|
||
|
(void)fp;
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
int main(int argc, char** argv)
|
||
|
{
|
||
|
const char* file_path = "/usr/share/aoc2023/day-template_input.txt";
|
||
|
|
||
|
if (argc >= 2)
|
||
|
file_path = argv[1];
|
||
|
|
||
|
FILE* fp = fopen(file_path, "r");
|
||
|
if (fp == nullptr)
|
||
|
{
|
||
|
perror("fopen");
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
printf("puzzle1: %" PRId64 "\n", puzzle1(fp));
|
||
|
|
||
|
fseek(fp, 0, SEEK_SET);
|
||
|
|
||
|
printf("puzzle2: %" PRId64 "\n", puzzle2(fp));
|
||
|
|
||
|
fclose(fp);
|
||
|
}
|