From 555dfa9e431cd137f3dbe6d99fc0231545287457 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:27:16 +0000 Subject: Mon, Feb 19, 2024, 12:27 PM -08:00 --- wk3/pset/runoff/runoff.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wk3/pset') diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index 4cc566e..25e3032 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -146,7 +146,12 @@ void tabulate(void) // Query for each rank for (int j = 0; j < candidate_count; j++) { - if (preferences[i][j] ) + for (int k = 0; k < candidate_count; k++) + { + if (!strcmp(preferences[i][j], candidates[k].name)) { + if (candidates[k].eliminated) + } + } } } return; -- cgit v1.2.3