Skip to main content
1 vote
Accepted

CS50 - pset3 - Runoff | Check50 failing print_winner on majority but works correctly for any manual test I can think of

If the second, or any odd-indexed candidate, is the winner print_winner will not detect that. Why? The i for loop in vote only processes the even indexes because i is incremented twice: once in the ...
DinoCoderSaurus's user avatar
1 vote
Accepted

pset 3 tideman print winner does not exist despite being declared

Have you compiled the program locally? The compiler should complain about this strlen(champions) because champions is declared an int array here int champions[pair_count]
DinoCoderSaurus's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible