Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 1246

The problem set for Week 1 introduces the C programming language.

0 votes
1 answer
434 views

Why Do I Get Errors When Checking greedy with check50?

So, I checked it with check50 by executing check50 2014/x/pset1/greedy greedy.c I got several errors. For example, it said that my program output 7 for the value 1.6. … Even stranger, I tried the program they wrote by executing ~cs50/pset1/greedy And the answers were all incorrect. I think I understand the pset specifications, so what am I doing wrong? …
Jonobugs's user avatar
3 votes
2 answers
2k views

How to Declare and Initialize Variables in C?

While I was watching the walkthrough for pset2 (capitalize), I noticed that David didn't declare a variable in his program. However, it still worked and I was wondering why. I tried to implement my o …
Jonobugs's user avatar