Ok, I understand now that you're only allocating enough memory for number of players.
Type: Posts; User: Char*Pntr
Ok, I understand now that you're only allocating enough memory for number of players.
//Dynamically allocate memory for the number of players in the input file
for (i = 0; i < ticketsbought; i++)
{
struct players* player[i] = calloc(ticketsbought, sizeof(int));
...