diff options
Diffstat (limited to 'wk3')
-rw-r--r-- | wk3/pset/runoff/runoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index 0e05e15..5434132 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -143,12 +143,13 @@ void tabulate(void) { for (int i = 0; i < voter_count; i++) { - // Query for each rank + // for (int j = 0; j < candidate_count; j++) { if (!candidates[preferences[i][j]].eliminated) { candidates[preferences[i][j]].votes++; + break; } } } |