cs50 / problems

Checks for check50
134 stars 227 forks source link

a bug in the runoff test from W3 #228

Open dimisb opened 7 months ago

dimisb commented 7 months ago

// Code passes tests: bool vote(int voter, int rank, string name) { for (int i = 0; i < candidate_count; i++) { // should be if (strcmp(name, candidates[i].name) == 0) if (name == candidates[i].name) { preferences[voter][rank] = i; return true; } } return false;