The printer has blue, green, and red stacks of flyers. Add the sheet counts across all three records instead of entering the total by hand.
The records, zero total, and final print are supplied in main.c. The (void)stacks; placeholder suppresses an unused-variable warning without changing the array; it can remain. Add your loop before the print, then Run and Submit.
i that visits the three stacks records and adds stacks[i].sheets to total. The supplied print should change from Sheets: 0 to Sheets: 9.The last valid index is 2. A loop that reaches index 3 reads past the array.
Submit checks the final output, not the technique used. Follow the requested C steps even if a hard-coded print would match.
Read stacks[i].sheets while i < 3.