diff options
Diffstat (limited to 'wk3')
-rw-r--r-- | wk3/pset/runoff/runoff.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |