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 not deleted user 13577

The problem set for Week 3 asks students to write code for a classic puzzle game in the C programming language.

0 votes
2 answers
51 views

Pset3, Game of Fifteen, won, game keeps winning!

for the final part of fifteen, my game wins automatically upon start up and I'm not sure why, please help, thanks. my code is as follows: bool won(void) { //for each row for (int i = 0; i < d; i++ …
0 votes

Pset3, Game of Fifteen, won, game keeps winning!

OK so I know why the old code didn't work. Its because at the start of the game, the first if condition is always met i.e. none of the integers are correct, then the second if condition is checked a …
Arhaz's user avatar
  • 7
0 votes
1 answer
64 views

find not working

so ive cleaned up my code but it still always prints 'found needle in haystack'! please help! /** * helpers.c * * Helper functions for Problem Set 3. */ #include <cs50.h> #include <stdio.h> …
0 votes
1 answer
51 views

cs50 pset3 binary search

im not sure if my binary search code is correct, when I try to compile it I get the following message: /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has inval …