The report needs three struct Part records. An index selects a record; .count selects its count field. The supplied print reads those fields before releasing the allocation.
The unfinished starter exits with status 1 because its pointer is NULL. It does not print a report; the course runner may show an exit-status message instead. That is the supplied safety check working, not a compiler error.
Edit main.c, then use Run to inspect the result and Submit to compare it with the expected output.
NULL in the declaration of parts with malloc(n * sizeof *parts), then replace the three zero counts with 1, 2, and 4 in order. Keep the failure check before all indexed writes. The supplied sum should print Parts: 7.Complete the allocation first and Run with the supplied safe zero counts. Then replace those counts and Run again. Submit checks the finished sum as one result, not separate allocation and initialization tasks.
The check compares the complete output, ignoring whitespace at the beginning and end. It does not inspect your source or prove memory safety. Follow the requested function calls and review the code as well as the result.
Work in order. With only the allocation completed, the program can run safely but the final-output check will not pass yet. Keep the supplied NULL check and free call: correct printed numbers alone cannot show that storage was handled safely.
Use struct Part *parts; return on NULL before indexing.