Questions tagged [pset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
162 views

Which loop can be replaced for nested for loops for PSET 1 (Mario More Comfortable)?

According to the cs50 style guide for C, more than 3 variables for iteration is not a good practice. I have done Pset 1 (Mario more comfortable) with 5 for loops, so it has 5 iterations variables. Is ...
2
votes
1answer
367 views

Can I add the solutions to all the psets I solve to my GitHub account?

I just made my GitHub account. Can I add the coding questions I solve successfully to my GitHub account?
2
votes
3answers
136 views

stuck at pset1 initials [duplicate]

I am having problem in pset2 initials i am getting only my first letter initialized infinitely .so, i need to know the problem to fix the errors. { // asks user for the name string s = ...
1
vote
1answer
221 views

This should be right (Caesar)

After spending pretty much a whole day on this, I have gotten it to work fine, it does all that was demanded but when submitted, I am still getting 1/5 on correctness. :( someone tell me if I left ...
1
vote
1answer
4k views

CS50 IDE undefined reference to `get_int'

I've created a new workspace on cloud9, and ran update50 as suggested in the answer to this similar question: Undefined reference to get_int However, I still receive the exception 'undefined ...
1
vote
1answer
232 views

Unable to login, to submit pset0. Signed in with Google

I am not able to login to CS50.net, and cannot submit a pset. I signed in and enrolled using the google-signin-option. I saw one user who had this problem as well. Are there others here signed in ...
1
vote
2answers
1k views

Set foreign key in phpLiteAdmin

Does anyone know how to set a foreign key using the phpLiteAdmin interface? The docs for this application are lacking, and the recommended syntax for adding a column using SQLite does not appear to ...
1
vote
1answer
310 views

pset4 Resize - Trouble Understanding Padding

I'm having a hard time understanding pset4's resize. Although I understand the theory, it's difficult for me to turn it into a program. I do understand that the scan line's total width must be a ...
1
vote
1answer
290 views

How does the grading system work?

I submitted Pset 0 and got a 1 on the far right of the Gradebook. I'm assuming that's not very good. I was wondering how the grading scale worked and if we would get feedback on the Psets.
1
vote
1answer
53 views

In which week we have to do pset2?

my name is Paulo and I'm taking cs50 through edx. I noticed that the pset0 and the pset1 used to be at week 0 and at week 1, respectively. But for some reason, now they are at week 1 and week 2, ...
1
vote
3answers
2k views

Can I skip Scratch Problem Set ?

I've started taking the course, but I can't edit the code in Scartch editor, it crashes and tells me it will notify MIT. Can I skip this pset and go to the next one ?
1
vote
1answer
378 views

Are cs50 psets actually checked and marked by the staff(humans)?

When cs50 psets and quizzes are answered and submitted, are they actually checked and marked by the staff (Humans), or everything is done by a machine? Because there'd be a whole bunch to check and ...
1
vote
1answer
36 views

spellchecker unload not freeing 1 block

What is not freeing!? [code snipped by mod] // end of load function (mod comment) return true; fclose(dict_file); } [code snipped by mod]
1
vote
1answer
142 views

when Will i still get the honor-code certificate?

i completed my cs50 course.Took Cs50 and had the following grades on my psets 1, 0.67, 1, 0.11, 1, 1, 1, 1 , 1, 1. when i will get the honor code certificate?
0
votes
1answer
626 views

How to approach the psets?

Sometimes I feel that I'm too dumb to take this class. Are there any pointers someone could give me on how to approach the problem sets a little better? I'm currently struggling with the caesar ...
0
votes
1answer
184 views

Gradebook issue

So far i have submitted PSET0, PSET1, PSET2, PSET3. I have submitted both standard and hacker editions. I have following grades so far: PSET0....................1.0 PSET1 PSET2...............
0
votes
1answer
21 views

check50 on recover pset 4 saying this what am i doing wrong

:) recover.c exists. :) recover.c compiles. :( handles lack of forensic image expected exit code 1, not 0 :) recovers 000.jpg correctly :) recovers middle images correctly :) recovers 049.jpg ...
0
votes
1answer
328 views

PSet 2: Caesar, validating key

I'm struggling with the output to the "Validating Caesar's Key" part of PSet 2. First-timer here, like many, and appreciative of any insight. When I compile and then run this program with "./caesar 2",...
0
votes
1answer
123 views

imprecision problem cs50 greedy

#include < cs50.h > #include < stdio.h > int main(void) { float change; int quarter = 25; int dime = 10; int nickel = 5; int penny = 1; int counter = 0; int c ...
0
votes
1answer
758 views

pset4 - Recover - doesn't pass check50 but works

So, I have finished recover.c (2016 edition) and it recovers all 50 of the jpg-s, and labels tham from 000 to 049. I have looked at every jpg, and they seem intact, all of them (I opened each of them ...
0
votes
1answer
18 views

PSETS are not available

I just completed my pset1 and when i was searching for pset2 in harvard officials CS50 website, there was nothing except pset1 (scratch) Can anyone please tell me how to find other psets?
0
votes
1answer
76 views

Problem set 6 method not allowed

I am testing my pset6 code but it is given an error of 405 method not allowed and I do not understand why? Please help me !! Thank you in advance! //define elements to be checked int ...
0
votes
1answer
1k views

Pset5 Speller Load / Check Problem

I have spent hours checking my code but still couldn't figure out which part went wrong. The program executed without throwing errors but the misspelled words identified were wrong. I think the ...
0
votes
1answer
160 views

Standard or Hacker or Both

For Pset 1 and Pset2 i have submitted hacker edition assignments. But just wanna make sure if someone is submitting hacker edition assignment then do he need to submit standard edition also. Or You ...
0
votes
2answers
58 views

[STAFF]Submitting using another VM?

My computer crashed recently and I am working on a backup laptop. I already have an Ubuntu VM installed in this one. So I was wondering, can I submit my psets using the Ubuntu VM instead of the ...
0
votes
1answer
28 views

Segmentation Error while Using if Statement for Pset2 Caesar

I have been working on Caesar for some time now and tried to use different loops but I am getting Segmentation Errors. #include <stdio.h> #include <cs50.h> #include <stdlib.h> #...
0
votes
1answer
43 views

credit pset1 bruteforcing doesn't work

I was trying out credit and tried to write a code for all 15 digit cards so if a AMEX card exists it should work in theory. However even with valid cards I'm getting the input invalid. I have not ...
0
votes
2answers
57 views

Can't write jpegs in recover, segmentation fault

here's the code i wrote: #include <stdio.h> #include <stdint.h> #include <stdlib.h> typedef uint8_t BYTE; //take command line argument from the user for the file name int main(int ...
0
votes
1answer
733 views

Problem Set 6 - DNA (Using the DictReader function)

Currently my code functions in so far that I get the appropriate results for the maximum STR counts when I pass a certain sequence. However, I have no clue as to what I should do to progress; I tried ...
0
votes
1answer
215 views

Problem Set 4 - Filter (Blur)

I know its pretty lame and uninspired to hard-code each and every special case of the blur function, but somehow it still refuses to pass most of check50's tests (aside from the middle and edge pixel ...
0
votes
1answer
653 views

Pset 1: Cash help

I've put together my answer for the cash problem set, but when I run the program and enter an amount for "change owed" it always outputs 1. Being new to all of this, I'm not sure what I'm doing wrong ...
0
votes
1answer
44 views

Check50 has Blank Output

I am trying to run check50 on my code, but it does not return anything; the output is blank, and it only returns a link to a check on https://cs50.me. Anyone know how to fix this problem
0
votes
1answer
90 views

I need help with cash - again

Ok so this is my improved code: #include <stdio.h> #include <cs50.h> #include <math.h> int main (void) { float c; int a, n=0; do { c = get_float("Change: "); } while (...
0
votes
1answer
32 views

music pset - semantic error

I implemented the music program in pc and I omitted the cs50.h library since I work offline most of the time. Everything's fine actually my code did not give me error messages and it compiled ...
0
votes
1answer
222 views

pset1 cash.c Do While loop executing even when condition = false?

I am inputting 0.26 into cash.c, and after the first do while loop in my program, f = 0.00999999046 My second do while loop condition is f >= 0.10, yet it is executed even though f is less than that. ...
0
votes
1answer
75 views

CS50 Pset 4/Recover-retains 50 broken JPEGs

My code compiles/executes and retains 50 JPEGs, however, these JPEGs are broken, I have gone through my code many of times, have discarded other versions, I seem to be missing something I can't spot ...
0
votes
1answer
34 views

Trying to use functions to modify pset2 Caesar characters, get error: expression result unused for each function

So I'm working on pset2's Caesar and wanted decided it would be better to put the algorithm into functions, with each function operating based on whether a character is uppercase or lowercase. Now ...
0
votes
1answer
273 views

Blank jpegs pset 4 recover

#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <cs50.h> int main(int argc,char *argv[]) { if (argc != 2) { fprintf(stderr, "usage: ./recover ...
0
votes
1answer
171 views

Pset5: Check returns all as misspelled (trie)

I can't, for the life of me, figure out why my check function doesn't work properly. I have triple-checked my load() every way I know how and believe the data structure is properly setup. Why doesn't ...
0
votes
1answer
77 views

pset2 Caesar, not able to print chypertext text

I'm trying to solve the Caesar problem. if you look at my code, I tried to iterate through the "plaintext" value with a for loop. My aim was at every alphabetical character to apply the chypher ...
0
votes
1answer
100 views

initialization; condition; update in mario.c less comfortable

I am really having a problem with developing the "initialization; condition; update" part of my for loop in my mario (less comfortable) code could anyone help me with understanding what to input
0
votes
1answer
52 views

any one having trouble opening Pset links

Have not been able to open any of Pset links, able to watch videos of lectures and shorts! any thoughts? Thanks
0
votes
1answer
1k views

pset2//caesar- relational operator result unused error

my code--> #include<stdio.h> #include<cs50.h> #include<string.h> #include<ctype.h> #include<stdlib.h> int main(int argc, string argv[]) { if(argc!=2) ...
0
votes
1answer
208 views

problem resizing horizontally

I've started out this problem as bad as it gets :( trying very hard to understand bitmab files and how they work (especially padding) for a few days(as I'm not a native English speaker). now that I ...
0
votes
1answer
103 views

Recover is Producing Corrupt JPEGS

Here's my code. I've got print debugging statements in there. The output seems to indicated that everything is going well, but when I open up the files, they are blank. I inspected the JPEGS with ...
0
votes
1answer
736 views

APCS50 Problem: Fahrenheit

ok so im in CS50AP which means for you who dont know mean im in high school so i could use some help with this right now my code for fahrenheit is: #include <cs50.h> #include <stdio.h> ...
0
votes
1answer
41 views

PSET 2: Nested IF statement

I'm trying to solve Caesar cypher ploblem from the course by using an if statement inside another if statement (Nested IF statement? apologies if I'm using the term incorrectly.) My draft attempt in ...
0
votes
1answer
350 views

pset 3 Binary search

I'm stuck on implementing the binary search function in pset3. I am trying to do the recursion method but I am stuck and have been for hours. It seemed easy enough but I am discovering that it's more ...
0
votes
1answer
80 views

How should I connect to the multiple databases?

I am trying to Merge several psets. But to do that I think I need to have multiple databases. My dumbest approach to that problem follows like this in constants.php define("DATABASE", "pset7"); ...
0
votes
1answer
20 views

Returning 2015 student (Starting fresh)

I started cs50 in 2015 on EDX but never really finished it. I would like to start again this year. But not with last year's grades. Is it possible to just resend the psets even though I've already ...