check50

cs50/problems/2025/x/tideman


:) tideman.c exists

Log
checking that tideman.c exists...

:) tideman compiles

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...

:) vote returns true when given name of candidate

:) vote returns false when given name of invalid candidate

:) vote correctly sets rank for first preference

:( vote correctly sets rank for all preferences

Cause
vote function did not correctly set ranks

:( record_preferences correctly sets preferences for first voter

Cause
record_preferences function did not correctly set preferences

:) record_preferences correctly sets preferences for all voters

:) add_pairs generates correct pair count when no ties

:) add_pairs generates correct pair count when ties exist

:) add_pairs fills pairs array with winning pairs

:) add_pairs does not fill pairs array with losing pairs

:( sort_pairs sorts pairs of candidates by margin of victory

Cause
sort_pairs did not correctly sort pairs

:( lock_pairs locks all pairs when no cycles

Cause
lock_pairs did not lock all pairs

:( lock_pairs skips final pair if it creates cycle

Cause
lock_pairs did not correctly lock all non-cyclical pairs

:( lock_pairs skips middle pair if it creates a cycle

Cause
lock_pairs did not correctly lock all non-cyclical pairs

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

Cause
print_winner did not print winner of election

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

Cause
print_winner did not print winner of election