Questions tagged [print-winner]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

(Solved) Problem Set 3 - (Tideman) Print Winner Function

I have implemented everything successfully up until the 'Print Winner Function', and although I'm pretty sure my logic is correct, and doing manual tests myself yield the correct winner's name. The ...
0
votes
1answer
24 views

Problem Set 3 (Runoff) print_winner function doesn't print and quits

I am working on problem set 3 runoff and I am having trouble with getting my print_winner function to work correctly. When I run the program it basically does nothing and quits the program. It gets ...
0
votes
1answer
35 views

CS50 - pset3 - Runoff | Check50 failing print_winner on majority but works correctly for any manual test I can think of

I'm having trouble with getting Runoff to complete Check50. All checks are passing except the two below for the print_winner function :( print_winner prints name when someone has a majority Cause ...
0
votes
1answer
57 views

pset 3 tideman print winner does not exist despite being declared

I have such a strange behavior here in pset 3, tideman. I am doing the print_winner function because check50 says everything else is fine, but when i run the program it looks like print_winner does ...
0
votes
0answers
44 views

cs50 pset3 print winner function

Im strugling with print_winner function in Tideman election program. In my opinion function workes fine. It prints the candidate which has all false values in column under his name (number) in locked ...
0
votes
1answer
38 views

Print winner implementation error. Can someone help?

I tried the following idea to print winner function. Can you check why it is not working? Defined a function named find_majority. This is to get around the float problem. called the function and ...
0
votes
1answer
125 views

My print_winner from pset3/tideman is doing everything right and still check50 says it's wrong

void print_winner(void) { bool looser; for (int i = 0; i < pair_count; i++) { looser = false; for (int j = 0; j < pair_count; j++) //checks if each winner ever lost ...