Questions tagged [problem]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
73 views

CS50; Problem Set 3 - can't make/execute "window.c" - please help!

Could you please help me with Problem Set 3. Paragraph "Breaking Out". After unzip src4m.zip I see: Makefile button.c click.c label.c pointers.c sigma-1.c text.c bounce.c checkbox.c ...
0 votes
2 answers
59 views

Not able to link cs50x with Edx

I'm new here. I just started the Edx cs50 course and submitted the first problem. When I go to https://cs50.me/cs50x I get to see the following error: Your CS50.me account is not yet linked with edX. ...
1 vote
1 answer
374 views

pset3, tideman, cs50 2021

I worked with pset3 and I think there are nothing wrong with my code, but check 50 says it has 2 problems on my code. 1.:( lock_pairs skips final pair if it creates cycle 2.:( lock_pairs skips middle ...
0 votes
1 answer
173 views

Pset2 Readability error: expected identifier or '('

I've been trying to compile this code but always get this error "error: expected identifier or '(' " for the line 13 (which is the first one starting with "for") COuld someone help ...
0 votes
1 answer
33 views

Can I use if-statement or switch-statement instead of a for loop!

I just want to know if it is possible to use conditions instead of loop in the problem set 1 (Mario), because I think that it's easier to get to the intended output without much code!?
0 votes
1 answer
627 views

React-Native obfuscation

How to obfuscate my react-native JS code? I have set the following in my build.gradle file: release { minifyEnabled true proguardFiles getDefaultProguardFile("proguard-android.txt"), "...
0 votes
2 answers
46 views

My vigenere code is not encrypting properly

This is my code: #include <stdio.h> #include <ctype.h> #include <cs50.h> #include <stdlib.h> #include <string.h> int main(int argc, string argv[]) { int index =0; ...
0 votes
1 answer
253 views

Answers for all problem sets

Is there proper answers to all the given problems set every week directly? if so where?
1 vote
2 answers
226 views

CS50 Readability solved it but I feel there is something wrong

I did Readability problem set but I feel it is wrong to initialize words to 1 but it is the only way to satisfy the requirement since the first the words are counted by space so the last word can not ...
0 votes
1 answer
95 views

I have some questions with Scratch.(I am a beginner)

I have some questions now, I don't know how it works. please teach me these knowledge if you know it, thanks a lot. this is my first project, I have some questions. question: I want to let Tera have ...
0 votes
1 answer
179 views

Code check for bad credit pset1

This is my attempt for the bad credit problem in pset1 and I'm having trouble debugging my code. Any help would be appreciated. #include <stdio.h> #include <cs50.h> bool checksum(long ...
0 votes
1 answer
787 views

cs50p problemset 7 /working.py

mo code works fine and passes al teat in test_working.py but i dont know why i get this error :) working.py and test_working.py exist :) working.py does not import libraries other than sys and re :) ...
0 votes
1 answer
108 views

CS50 pset4, I have problems with getting the blur filter to work

So basically what I did was, first I started off with the row above and then the relevant row and then the row below. I created a for loop which would run across the row 3 times. My code looks like ...
1 vote
2 answers
132 views

Yet again, problem with padding

I am having a problem with my code, and I think it has to do with the use of fseek. I have read a lot of the articles on the cs50 Stack Exchange, and tweaked my code a lot, but my problem still ...
0 votes
1 answer
15 views

What error is resulting in incorrect values for change?

My code follows: // include all necessary header files #include <stdio.h> #include <cs50.h> #include <math.h> // define all coin values #define QUARTER 0.25 #define DIME 0.10 #...
0 votes
2 answers
94 views

Problem Set 1, Cash: maths issues

I have been trying to fix this code for the last day, and still can't work out where I am going wrong. Can anyone point me in the right direction please? Thanks in advance! int main(void) { // ...
0 votes
1 answer
1k views

hello.c Problem Set 1 problem - make: *** [hello] Error 1

I'm stuck on the hello.c file. My code is: int main(void) { printf("hello, world\n"); } I've checked to make sure that I'm in the right directory. However, when I type make hello, the terminal ...
0 votes
0 answers
288 views

CS50 pset7 application.py buy - problem: won't insert information into new table

I've tried this a bunch of different ways and I can't get it to work. Everything seems to work. The total price of the bought shares gets subtracted from the users table, but I can't get it to ...
0 votes
0 answers
690 views

CS50 IDE not saving files

I've had this problem before where I've saved a file, run make, gotten errors, fixed the errors, saved the file, run make and got the exact same errors. When I refresh, or close and return, update the ...
0 votes
1 answer
84 views

pset2 segmentation fault

I have one problem with this code please help me! #include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> int main(void) { ...
0 votes
1 answer
106 views

Do I have to Resubmut The Form W/ The Problem Set?

I submitted everything and got a 0.68 (Mario had all 0s because I forgot to cite my code). Then I resubmitted it without the form and got 0.04, only everything worked. Then I resubmitted it again ...
1 vote
1 answer
46 views

Problem Sets Not Following Week Headers

I am seeing Problem Set 0 in Week 1. Week 1's section is about the appliance and not the scratch program. Why do they seem to be offset in the EDX setup?
0 votes
2 answers
213 views

My VMware Player and Virtual Box is not working!

All day i have been trying to setup CS50 appliance and downloaded VMware Player and Virtual Box but BOTH were giving errors. I uninstalled both and reinstalled them, but no luck. Please help! (sorry, ...
1 vote
2 answers
239 views

Approaching pset1?

I'm a 16 year old student trying to grasp the concepts of C in Week 2 of the course and I'm definitely struggling quite a bit - I'm at a loss for where to start with my Mario project. To help myself, ...
0 votes
1 answer
146 views

I don't know why my code isn't working? | Pset2 CS50

I don't understand why my code for pset2 isn't working. The goal is to use a shift key, given by the user, and then shift all the letters in a string, also given by the user, that amount of spaces, in ...
0 votes
1 answer
107 views

What's wrong with this code?

Well, I don't know what's the matter with this code (Mario). When I run it, the terminal goes crazy, like a thousands enters are triggered, the "craziness" of the terminal don't stop, I have to quit ...
2 votes
2 answers
122 views

I cannot submit my problem set 0?

I used the link given in the PDF for problem set0.It was accessible for the first three times.But due to some reasons I could'nt submit it and so closed the link.This time when i try to submit them ...