Skip to main content
typo
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

You don't say what is "not working" about it. But maybe this conditional if(candidates[i].votes>majority) should be >=.

Be forewarned: This program will not pass check50. Assuming plurality, from the spec:

You should not modify anything else in plurality.c other than the implementations of the vote and print_winner functions (and the inclusion of additional header files, if you’d like).

The same warning applies to all the pset3 exercises.

You don't what is "not working" about it. But maybe this conditional if(candidates[i].votes>majority) should be >=.

Be forewarned: This program will not pass check50. Assuming plurality, from the spec:

You should not modify anything else in plurality.c other than the implementations of the vote and print_winner functions (and the inclusion of additional header files, if you’d like).

The same warning applies to all the pset3 exercises.

You don't say what is "not working" about it. But maybe this conditional if(candidates[i].votes>majority) should be >=.

Be forewarned: This program will not pass check50. Assuming plurality, from the spec:

You should not modify anything else in plurality.c other than the implementations of the vote and print_winner functions (and the inclusion of additional header files, if you’d like).

The same warning applies to all the pset3 exercises.

Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

You don't what is "not working" about it. But maybe this conditional if(candidates[i].votes>majority) should be >=.

Be forewarned: This program will not pass check50. Assuming plurality, from the spec:

You should not modify anything else in plurality.c other than the implementations of the vote and print_winner functions (and the inclusion of additional header files, if you’d like).

The same warning applies to all the pset3 exercises.