1

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 loop itself and once in the else clause. Incrementing the for variable within the loop is very often a bug waiting to happen. If you run the Usage Election but ...


1

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 voted, non community-wiki answers of a minimum length are eligible