check50

cs50/problems/2024/x/tideman


:) tideman.c exists

Log
checking that tideman.c exists...

:( tideman compiles

Cause
code failed to compile

Log
running clang tideman.c -o tideman -std=c11 -ggdb -lm -lcs50...
running clang tideman_test.c -o tideman_test -std=c11 -ggdb -lm -lcs50...
tideman_test.c:220:16: error: use of undeclared identifier 'main_id'
while (main_id < left_half_size + right_half_size)
^
tideman_test.c:235:27: error: use of undeclared identifier 'main_id'
tmp_pairs[main_id] = left_half[left_id];
^
tideman_test.c:239:21: error: use of undeclared identifier 'main_id'
main_id += 1;
^
tideman_test.c:240:31: error: use of undeclared identifier 'main_id'
tmp_pairs[main_id] = right_half[right_id];
^
tideman_test.c:246:27: error: use of undeclared identifier 'main_id'
tmp_pairs[main_id] = right_half[right_id];
^
tideman_test.c:249:13: error: use of undeclared identifier 'main_id'
main_id += 1;
^
6 errors generated.

:| vote returns true when given name of candidate

Cause
can't check until a frown turns upside down

:| vote returns false when given name of invalid candidate

Cause
can't check until a frown turns upside down

:| vote correctly sets rank for first preference

Cause
can't check until a frown turns upside down

:| vote correctly sets rank for all preferences

Cause
can't check until a frown turns upside down

:| record_preferences correctly sets preferences for first voter

Cause
can't check until a frown turns upside down

:| record_preferences correctly sets preferences for all voters

Cause
can't check until a frown turns upside down

:| add_pairs generates correct pair count when no ties

Cause
can't check until a frown turns upside down

:| add_pairs generates correct pair count when ties exist

Cause
can't check until a frown turns upside down

:| add_pairs fills pairs array with winning pairs

Cause
can't check until a frown turns upside down

:| add_pairs does not fill pairs array with losing pairs

Cause
can't check until a frown turns upside down

:| sort_pairs sorts pairs of candidates by margin of victory

Cause
can't check until a frown turns upside down

:| lock_pairs locks all pairs when no cycles

Cause
can't check until a frown turns upside down

:| lock_pairs skips final pair if it creates cycle

Cause
can't check until a frown turns upside down

:| lock_pairs skips middle pair if it creates a cycle

Cause
can't check until a frown turns upside down

:| print_winner prints winner of election when one candidate wins over all others

Cause
can't check until a frown turns upside down

:| print_winner prints winner of election when some pairs are tied

Cause
can't check until a frown turns upside down