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 31002
1 vote

Blur look correct but check50 says its not?

Have a close look at the conditionals for your inner for loops. Is < 1 the right test?
Sentox's user avatar
  • 950
1 vote

pset1 credit solution. code not working but there is no bug

One fundamental issue you'll face is that a credit card number is too long for an int; try using get_long() instead. I would recommend starting over with your implementation of Luhn's algorithm. Somet …
Sentox's user avatar
  • 950
0 votes

PSET 2 Caesar: Permission denied problem

You're trying to run the uncompiled .c code instead of the binary. Try running: ./caesar
Sentox's user avatar
  • 950
1 vote
Accepted

How can I create a loop to read end of the card.raw file?

With regards to your first question, fgetc technically returns an int. While it expects to read a byte of data represented as an unsigned char, it will return a negative number (usually -1, and repres …
Sentox's user avatar
  • 950
0 votes
Accepted

Pset 4 Filter(less) Blur

You declare the variable counter outside of the loop, so it will retain its value and continuously increment over time. The top left pixel at (0, 0) will have 3 neighbouring pixels, then next pixel at …
Sentox's user avatar
  • 950
1 vote
Accepted

speller is case sensitive

I don't know what sort of output you're getting, but at first glance freeing a node whenever it's found in the dictionary will definitely cause you problems.
Sentox's user avatar
  • 950
0 votes

pointers and addresses

int m=10; This creates an integer with the value of 10 somewhere in memory. int *ab=&m; This creates a pointer to an int, and sets it to the address of the integer m (that is, the value of ab is the …
Sentox's user avatar
  • 950