C solutions for Advent of Code 2025 with automated input fetching and boilerplate generation.
Create .env file in project root:
AOC_SESSION=your_session_cookie_here
AOC_YEAR=2025- Login to adventofcode.com
- Open browser dev tools (F12)
- Go to Application/Storage -> Cookies -> https://adventofcode.com
- Copy value of
sessioncookie - Paste into
.envasAOC_SESSION
Build main executable:
makeRun a day (auto-generates + builds if needed):
./aoc <day> # generate data/solution file, run tests + both parts
./aoc <day> --submit <part> # submit answer for part 1 or 2src/ Solution files (day1.c, day2.c, etc.) + utilities
inputs/ Puzzle input files (auto-fetched)
bin/ Compiled shared libraries (git-ignored)
build/ Object files (git-ignored)
scripts/ Generation and fetch automation
./aoc 1- auto-generates src/day1.c, fetches input, builds, runs- Edit src/day1.c - implement part1()
./aoc 1- rebuild + run./aoc 1 --submit 1- submit part 1 answer- Edit src/day1.c - implement part2()
./aoc 1 --submit 2- submit part 2 answer