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 ...
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]
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
print-winner × 8pset3 × 4
runoff × 3
tideman × 3
check50 × 1
error × 1
sort × 1
tabulate × 1
missing × 1
pset3-tideman × 1
problemset3 × 1