Frequent Questions
612 questions
7
votes
2
answers
2k
views
Do YOU know how to find a seg fault?? Advice to new programmers [closed]
I have noticed a rash of questions lately that are essentially this: "My code has a segmentation fault. The code compiles, many tests pass, but I can't figure out the problem!"
If this is ...
0
votes
2
answers
537
views
Pset6 problem in indexes and load function
Check 50 returns a lot of errors https://sandbox.cs50.net/checks/caefd03d8ac2485b820743724297b846
Edit: New check50 https://sandbox.cs50.net/checks/fa32659c01b742b78c18f1568d48b90d
My load function
...
3
votes
2
answers
37k
views
How to solve "control may reach end of non void function" error
When I try to compile my code, I get an error message that says "control may reach end of non void function." What does this message mean and how can I avoid this error?
Here is the function that's ...
1
vote
1
answer
4k
views
How to Fix "control may reach end of non-void function" and "No such file or directory" Errors?
When I compile find, I get this error message
error: control may reach end of non-void function
When I then try to run the program
./find 14
I get this error message
bash: ./find: No such file or ...
1
vote
2
answers
4k
views
Pset3 Binary Search problems
I have tested the code presented in the picture and find this function always returns false no matter what number you search.There must be a problem in it but I can not see it!! Can anyone help me ? ...
7
votes
3
answers
2k
views
Pset7 - Forbidden 403. I can't even get started
I have done a ton of research online regarding this problem and have found several similar threads, but none of those solutions are working for me. I saw somebody posted the same question yesterday ...
0
votes
1
answer
944
views
Debugging Webserver in C
I have an error in my server.c file for PSET6 but have no idea how to find it. I am trying to use GDB and it does not seem to be very useful.
I would love some help learning how to better debug this ...
2
votes
1
answer
483
views
Can psets be graded a second time in edX?
I'm taking CS50 through edX. Is it possible to have a pset regraded after it was graded once?
0
votes
3
answers
26k
views
How to Wrap Around Array Indexes?
I have the Vigenere encryption portion working properly, but can't seem to figure out how to wrap around argv[1] indexes.
My first for loop declared two ints, i and j, and incremented each int with ...
5
votes
1
answer
2k
views
How long to wait for being graded
How much time does it take to get our psets checked? It's been more than two weeks since I submitted my pset1, yet it hasn't been graded. (I am doing CS50x)
3
votes
4
answers
2k
views
Not able to access (403 Forbidden) own website: https://ide50-username.cs50.io/ (with my username)
Even the (i) at the top right corner of IDE has disappeared along with the link to the server(or website). I started apache as specified in pset8 with correct permissions etc but am getting 403 ...
5
votes
4
answers
8k
views
How to handle the lack of argv[1] in caesar?
I think my program handles lack of argv[1] correctly, yet it fails check50's test. here my code:
if ( argc != 2 )
printf ("usage : ./caesar + key \n");
return 1;
1
vote
5
answers
9k
views
What's wrong with my code for mario?
I've been stuck on pset1 for five months now. I like to do things chronologically and mario has been giving me headaches.
Every time I think I have the problem solved, I'm told it's wrong or a lot is ...
6
votes
6
answers
9k
views
How to Install the Tools for the Course on Ubuntu
As per the question I have had nothing but trouble trying to use the virtual versions of the cs50 software, namely the virtual machine crashes runs slowly or just generally feels like my fingernails ...
2
votes
3
answers
2k
views
hacker1 - credit - Problems on some card numbers
The logic from hacker1:
Multiply every other digit by 2, starting with the number's second-to-last digit, and then add those products' digits together.
Add the sum to the sum of the digits that ...