All Questions
Tagged with tideman segmentation-fault
1 question
1
vote
1
answer
21
views
pset 3 Tideman - vote function works differently using check50 than manual testing
My code for the vote function is as follows:
bool vote(int rank, string name, int ranks[])
{
// TODO
for (int i = 0; i < candidate_count; i++)
{
if (strcmp(candidates[i], name) =...