Fill the bins in order
A hardware-store program records sales, fills bins and restocks shelves.
What needs to change
Repair fill so each number goes into the current bin and "next" moves to the following one.
Reproduce
- Build with g++, pipe the sample lines into ./main and compare the bin line with the expected stdout.
Acceptance criteria
Your review marks · Saved in this browser. Test acceptance is tracked separately.
Notes
The file contains its includes, readLines and the complete main.
Input: one quantity or "next" per line, with at most two "next" lines.