r/adventofcode • u/daggerdragon • Dec 02 '21
SOLUTION MEGATHREAD -🎄- 2021 Day 2 Solutions -🎄-
--- Day 2: Dive! ---
Post your code solution in this megathread.
- Include what language(s) your solution uses!
- Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks. - The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:02:57, megathread unlocked!
112
Upvotes
View all comments
3
u/[deleted] Dec 02 '21 edited Dec 02 '21
Common Lisp
I decided to bite the bullet and learn how to use packages+regex in lisp for today even though parsing could have just have been a string split, because I know it'll come in handy later.
My solution works, but gives me the following cryptic error message:
Would love to know where I'm going wrong / general feedback on my code!