Three stations start with zero visits. Only the third station has received four visitors. The starter supplies the failure check, output, and cleanup so you can focus on zero-initialized storage.
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 visits with calloc(stations, sizeof *visits), then set visits[2] to 4 after the failure check. Leave the first two elements at their initial zero values. The supplied print should show Stations: 0, 0, 4.Run after the allocation to see three zero counters, then add the third-counter update and Run again. Submit checks their final report together; these stages do not earn separate credit.
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.
calloc(stations, sizeof *visits) begins with zeroed int elements. Check and free the result.