check50

cs50/problems/2020/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

:) record_preferences correctly sets preferences for first voter

:) 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

Cause
add_pairs function did not produce correct 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