Relative Content

Tag Archive for ccs50

Segmentaion fault (core dumped), what does it mean and how to fix

i’m working on the cs50 plurality problems from problems set, which require me to complete 2 functions for a voting system, but I keep getting the ‘Segmentaion fault (core dumped)’ error code, whenever i put in a vote for a person that is not a candidate. i don’t know what it mean and don’t know how to fix it. Can anyone help? Thank You!

CS50 Problems set 3, Plurality. Always returning false

This this a problem from cs50 problems set 3. I have to complete 2 function to create a simple voting system. I’m trying to complete the vote function, but the function keeps returning false and never true. (i haven’t gotten to the print_winner function yet)

Why is the check50 indicating that the min found is incorrect when it is correct on runoff algorithm?

I am doing the runoff election algorithm form the CS50 course. The check50 is saying that the program is working properly but it is saying that the function find min is not returning the correct min when all the candidates are tied. I tested it myself with 3 candidates and 3 voters each one voting in an different candidate, I printed the min to check and it was 1 as it should be and the program indicated a tie properly.

cs50 scabble problem not working. can anyone help plz?

I’m doing the cs50 scrabble problems from probl set 2 and my ‘point’ function doesn’t add point correctly. the function keep ignoring all the ‘if’ and ‘else if’ statement even when there are char that corrospond with that ‘if’ statement.