Challenge 1: Overbooked
Overbooked
Section titled “Overbooked”The booking desk handles freight. You book a consignment as a number of crates, each carrying sixteen bytes of manifest, and then stow the crates one at a time. The desk will not release a consignment that customs has not cleared, and nothing you are given clears one.
Your goal is to get the release note printed.
Get the files
Section titled “Get the files”Download overbooked-v1.0.0.tar into ~/underdunn-course/downloads and
verify the release digest:
cd ~/underdunn-course/downloadssha256sum overbooked-v1.0.0.tar3b7aa3bee72c73a58cfe56e02ae3753e13f2e02897669e3e3ab2f51b05778153 overbooked-v1.0.0.tarDon’t continue if it differs. Download a fresh copy and verify it again.
mkdir -p ~/underdunn-course/labs/overbookedtar -xf overbooked-v1.0.0.tar -C ~/underdunn-course/labs/overbookedcd ~/underdunn-course/labs/overbooked/overbooked-v1.0.0sha256sum -c CHECKSUMS.sha256sh build.shEvery listed file has to report OK.
Freight booking desk.Commands: book <crates>, stow <n>, desk, release, quitThe build is silent under -Wall -Wextra. The compiler has nothing to say about this one.
The flag
Section titled “The flag”Paste exactly what the desk printed, with no surrounding whitespace:
Reset and cleanup
Section titled “Reset and cleanup”The desk keeps nothing between runs, so every process starts with nothing booked and no clearance. For a full reset of the files:
cd ~/underdunn-course/labs/overbookedrm -rf -- overbooked-v1.0.0tar -xf ~/underdunn-course/downloads/overbooked-v1.0.0.tar -C .cd overbooked-v1.0.0sha256sum -c CHECKSUMS.sha256sh build.shBefore resetting, copy any solver or modified source you want to keep outside the extraction. For final cleanup,
remove the generated booking executable along with your own driver scripts, and keep both the
verified archive and any work you want to revisit.