summaryrefslogtreecommitdiff
path: root/wk3/pset/runoff/runoff.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 20:27:16 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 20:27:16 +0000
commit555dfa9e431cd137f3dbe6d99fc0231545287457 (patch)
tree9682f5d9925f10ff18354246ccd1eac4eb5f1765 /wk3/pset/runoff/runoff.c
parentcc769ec1ddb92ee2d20c68834f2b7725dba43e6d (diff)
Mon, Feb 19, 2024, 12:27 PM -08:00
Diffstat (limited to 'wk3/pset/runoff/runoff.c')
-rw-r--r--wk3/pset/runoff/runoff.c7
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;