From 3be40cd1ea9ba53f342b6462a14db8ad78143546 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 22:09:56 +0000 Subject: Mon, Feb 19, 2024, 2:09 PM -08:00 --- wk3/pset/runoff/runoff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wk3/pset/runoff/runoff.c') 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; } } } -- cgit v1.2.3