Hot answers tagged

2

I suppose this is your hello-world program #include <stdio.h> int main(void) { printf("hello, world\n"); return 0; } which is SAVED as hello.c in your Dropbox folder. Use the following command in terminal to proceed to that folder. cd ~/Dropbox/ Now, you have the source code of the program with you, but not an executable. You need to make ...


1

Maybe it doesn't exactly match the spec any longer? Maybe a different test data set revealed another problem? Maybe you lost more points because they're now also checking style and grading it? Dunno without seeing code. But why doesn't it score 100%???


1

Create new file with name "hello.c" or it is already given with + tab in sandbox. LINK for problem sets: Problem set 1


1

Go to the CS50 IDE menu and choose Preferences Scroll down to Python Support Make sure that Python Version is set to Python3


1

Turned out to (possibly) be a glitch in the IDE. For whatever reason, the file didn't save, so there was no main function - in fact, no code at all. Whatever the cause, it's fixed. If this answers your question, please click on the check mark to accept so that this doesn't sit in the unanswered question pool forever. Let's keep up on forum maintenance. ;...


1

Just check50 cs50/2018/x/hello, without mentioning hello.c (as it used to be years ago). The checker will get a list of files to upload. https://docs.cs50.net/2018/x/psets/1/hello/hello.html#code-check50-code


1

Did you remember to save your file with the latest changes before trying to build the executable? The red dot on the tab for the source code in the first image means that it hasn't been saved. Also, the errors are typical for a source file where the main program code inside the source code file has been named hello() instead of main(). (Naming the file ...


1

Since those are the only two tests that fail check50, redirect your attention to how query is built in parse. Since hello.php "works fine", verify that query is properly null-terminated. A helpful format string for printf debugging is "%s<-" so your eye is not fooled by non-printing characters. Where are you printing "Type is:"? I don't think it's ...


1

It's not an error message, it's the command that it's executed by make. make is not a compiler by itself, but it calls a compiler, and passes all the relative flags you are probably going to need, so that you don't have to specify it yourself every time you want to compile your code. A little more detail: clang -ggdb3 -O0 -std=c99 -Wall -Werror hello.c -...


Only top voted, non community-wiki answers of a minimum length are eligible