Are you saying that you replace main() with int main(void) { ?
Even with that change the function I am working on does not get fixed, the main function is here and returns no errors or warnings only the function playersGetCard has the nested errors:
Code:
main() {
int numCards; /* Equals 52 at beginning of each game */
int cards[52], playerPoints[2], dealerPoints[2], total[2];
char ans; /* for users Hit/Stand or Yes/No Response */
do { initCardsScreen(cards, playerPoints, dealerPoints, total, &numCards);
dealerGetsCard(&numCards, cards, dealerPoints);
printf("\n");
playerGetsCard(&numCards, cards, playerPoints);
playerGetsCard(&numCards, cards, playerPoints);
do {
ans = getAns("Hit or stand (H/S)? ");
if (ans == 'H')
{ playerGetsCard(&numCards, cards,
playerPoints);
}
} while (ans != 'S');
totalIt(playerPoints, total, PLAYER); /* players Total */
do {
dealerGetsCard(&numCards, cards, dealerPoints);
} while (dealerPoints[ACEHIGH] < 17); /* Dealer Stops */
totalIt(dealerPoints, total, DEALER);
/* Dealer's total */
findWinner(total);
ans = getAns("\nPlay again (Y/N)? ");
} while (ans == 'Y');
return 0;
}