Hello , I am a student starting studying cs50. I searched on Google one day and found your work . I have a question in your cs50/pset3/runoff/runoff.c line 185 , you wrote : 'int min_votes = candidates[0].votes; ' , and then you compared other votes with this to get the minimum votes . However , if candidates[0] is eliminated in the first round , and the infinite loop is operated again , the candidates[0] will be the eliminated one again instead of the one which should be eliminated (which is among the not eliminated ones) . For example , there are four candidates:k s a b .7people votes : Rank1:b s a a s k k . Rank2 : k ...... in this case, the loop will continue again and again without eliminating new candidates.
PS: I do not know how to insert a command in other people's code directly , can you teach me?Thank you very much!