All Questions

2,848 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
214 views

Do YOU know how to find a seg fault?? Advice to new programmers

I have noticed a rash of questions lately that are essentially this: "My code has a segmentation fault. The code compiles, many tests pass, but I can't figure out the problem!" If this is you, then ...
4
votes
1answer
186 views

Functions returning a value?

I'm trying to implement multi-dimensional arrays in Scratch, for an implementation of maze generation. To simplify, I'd like to implement a couple of custom blocks which return a value, e.g. ...
3
votes
0answers
910 views

How to call the usd function in the jinja template of quoted.html?

I want to display the cost of the share in Quote tab using the "usd" function defined in helpers.py. I've tried adding app.jinja_env.globals.update(usd=usd)in application.py and then calling the ...
3
votes
1answer
61 views

Google Earth frame is displayed in front of javascript alerts

When I click start engine in the right rail of the application, an alert is displayed behind the Google Earth frame of the Harvard Yard. I cannot click on any items that are displayed on this alert, ...
2
votes
1answer
149 views

How to submit assignment using git bash?

I am trying to submit the assignmet0 for CS50's Game Development. I have used git bash, just want to make sure what I did is correct and also asking if my understanding of git is correct. I did the ...
2
votes
2answers
592 views

Unable to pip install submit50

Following CS50 Game development. Trying to submit my assignment, i have python 3.8 installed. while pip installing, I received following error message: ("submit50 does not support Windows directly. ...
2
votes
2answers
82 views

2019 PSET4 SPELLER, I have no clue why it isn't working, I'm sure size and unload function is right, but unsure about load and check

// Implements a dictionary's functionality #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #...
2
votes
0answers
293 views

OSError: [Errno 99] Cannot assign requested address in pset7 2019

I am trying to send email via my server to the persons who have done their registration. Their information is getting stored in database( csv file) but when I click on submit button, nothing loads and ...
2
votes
1answer
171 views

CS50 2019 PSET8 updating API from 2017 API

I have a lot of work from finance 2017, but it seems to use a different API than what I used last year. How do I update my code to use this new API? Or can I just use the one from last year? (I don't ...
2
votes
1answer
304 views

Compiler Can't locate CS50 library locally

I'm trying to work on my C psets on my local machine in vscode. I've installed the cs50 library locally but am having trouble compiling. OS is osx 10.14.3 The error I'm receiving when compiling with ...
2
votes
1answer
69 views

Problem with running docker toolbox on windows

Please I need help. I've been searching all over the net and topics on how to run IDE offline on my windows 10, I've downloaded it but when I run it following the several instructions, I keep getting ...
2
votes
1answer
78 views

Why do cs50/2018/x/speller, cs50/2018/x/mashup show looks good but give 4 / 5 for style?

I have run update50 and I'm still not seeing any style errors but I'm still getting 95% and 4/5 for style?
2
votes
1answer
450 views

CS50's Web Programming with Python and JavaScript on edx project submission

On the following course on edx: CS50's Mobile App Development with React Native CS50's Web Programming with Python and JavaScript I have been trying to submit the project work but it is "Coming Soon!" ...
2
votes
1answer
193 views

CS50.io - python 3.6 breaks submit50

I just ran update50 before trying to submit my final project but after doing that and trying to run submit50 the new version of python seems to have broken from what I have seen researching the error ...
2
votes
1answer
99 views

Who I can connect if my problem set 0 haven't been graded?

I have submitted 6 problem set from 0-5, but only the problem set 0 haven't been graded. Who should I contact to inform the ungraded problem set?
2
votes
1answer
201 views

pset2 Initials Design Improvements

I was hoping you might be able to help me improve the design of my code. I've solved the initials problem, and it passes check50 on both normal and hacker edition (the hacker edition was incidental), ...
2
votes
1answer
282 views

I receive “Not authorized to access this private project” page when trying to get to CS50 Finance page in pset7

I think something is incorrect with my permissions when I'm trying to set up my pset7 materials per the spec. I've followed the spec exactly. I used username50 and password50 to put my username and ...
2
votes
2answers
88 views

Difficulty submitting PSET7 to be graded

My pset7 zip file is about 700kb, i click in "Add files..." button and select pset7.zip, next i click the "Start upload" button, the uploader appears to fill pretty fast as normal but it doesn't ...
2
votes
1answer
119 views

Problem with the cs50 ofline ide text editor

the cs50 offline ide shows some loading window with the scratch pieces at left panel when trying to save a C file and keeps on loading. i had restarted my laptop and again reopened the ide in google ...
2
votes
1answer
156 views

pset7 finance unable to submit

My zipped pset7 folder is about 6oo KB and is taking hours to upload. I eventually abort because it seams to go on forever. In contrast other psets upload in a matter of seconds. Any help is greatly ...
2
votes
2answers
404 views

chmod doesn't work on individual files?

When I do something like chmod 000 dir I don't see the directory when I open the server but when I do this on individual files and not the directory chmod 000 file.php I still see that file in my ...
2
votes
1answer
174 views

Header Problem in Resize

There is some serious flaw in the header file code of my program since all the variables that was required to be modified is showing error while running the peek program (as shown in in the screenshot ...
2
votes
2answers
383 views

How can i distribute the final project which requires configuration of SQL?

I wanted some help to make my final project. It is a site that uses SQL, how can I do that? My preference is for a free hosting provider? Specifying the question: What free host can I use? How to ...
2
votes
2answers
309 views

pset8 - Cities with two part names

I'm having an issue with search.php. I am wondering how to parse $_GET["geo"] so that it can find cities with a space in the name (i.e. New York, San Diego). I used the 'LIKE' sql command and strtok() ...
2
votes
1answer
211 views

What effect does #undef have on header files?

I was hoping someone could explain the purpose of #undef in the mispelling problem set? I read an explanation, i just wanted to know now if the #undef effects the definitions defined in sys/resource.h ...
2
votes
1answer
151 views

Appliance still does not seem to have internet access

I'm having trouble using check50. I can browse with chrome and update50 works but when I use check50 the terminal or github it tries stuff for about 5 mins then gives up and says I should restart. I ...
2
votes
1answer
892 views

C Preprocessor Output: What is <built-in>

I wrote one of the most simple programs I could imagine: int main (void) { int a; } As you can see, there are no include files. The purpose is to understand a little bit more about the ...
2
votes
1answer
143 views

check50 error: CERT_HAS_EXPIRED

I'm using check50 to check my linear search algorithm in pset3, and it doesn't seem to be uploading or checking at all. Instead I get the message: Uploading.. CERT_HAS_EXPIRED and the second time: ...
2
votes
1answer
170 views

How do I get past Chrome to submit assignments

I've got the three programs (hello, mario, and greedy) ready to submit but I can't get past Chrome, I have trouble remembering passwords, and they want to know the date I first signed up for Chrome. ...
2
votes
2answers
59 views

VMware player 6 problem installation

My computer does not have a HAV capable processor, that is why it does not have hardware-assisted virtualization. I cannot install your enviroment (VMware player 6) that you recommended. What should ...
2
votes
1answer
218 views

OSX Yosemite Beta does not support VMware Fusion

I have a Macbook Pro running OSX Yosemite Beta. I tried running my previously working version of VMware Fusion on this but it says the current operating system does not support VMware Fusion! Can ...
2
votes
1answer
2k views

tideman pset3 cs502020 sort pairs

I started on cs502020 new pset3 -tideman few days ago and haven't been able to figure out how to implement sort_pairs, where one has to sort the struct in an array based on strength of the victory. ...
1
vote
1answer
29 views

pset3 runoff help -> 3 :( showing on check50

I'm getting the following fails when I check pset3 runoff (all the rest are coming up as correct) :( tabulate counts votes when multiple candidates are eliminated tabulate function did not produce ...
1
vote
1answer
23 views

Unexpected error in homemade string search function

I am playing around with Python on the DNA problem. I realize there are some string methods that might make this problem easier but my gut instinct was to try and make an "search function" ...
1
vote
0answers
62 views

CS50W - Project 0 - “I'm Feeling Lucky”

For the "I'm Feeling Lucky" part, I'm getting a redirect notice (like this: https://images.app.goo.gl/Mgk6knNBYHfe5YKB7). How do I bypass this? Thank you!
1
vote
1answer
27 views

clang-7: error: linker command failed with exit code 1 (use -v to see invocation

I just watched the C lecture the other day, and tried making my first program in the online developer environment (CS50 IDE). Just like the lecture, I am trying to use the compiler command to turn my &...
1
vote
1answer
52 views

Week 4: Recover (invalid stdio handle)

As I'm sure you're aware, the goal of this assignment is to recover a number of deleted jpeg files from a provided memory card image. My code compiles and executes, but I'm receiving the error "...
1
vote
1answer
13 views

CS50 recover (fclose giving segmentation fault)

found a few answers to the segmentation fault issue in CS50 recover while closing the file but I couldn't translate the answers to my issue: The last part: fclose(f); fclose(img); is resulting into ...
1
vote
1answer
59 views

PSET1 Mario pyramid - Can someone explain me the logic of this line of code?

I was able to make the Mario's pyramid from Problem Set 1, (I know it should be right alligned, not left). This is the code, and it is working fine when I execute the program, but I don't seem to ...
1
vote
1answer
12 views

Segmentation fault with overwriting chars

I tried overwriting cipupperalphabet[j] from a A to a B, but it has caused a segmentation fault. string upperalphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string cipupperalphabet = upperalphabet; int j = ...
1
vote
0answers
33 views

PSET6: dna.py, updating dictionary

I'm struggling with Python, specifically adding/updating keys and values in a dictionary. This is my code so far (I know it's probably far from perfect, this is my first time working with Python, ...
1
vote
0answers
17 views

Week2 Help50 Make Buggy0 doesn't work

I executed help50 just like in the lecture(see photo) but it doesn't recognise the file although it is written right:
1
vote
0answers
42 views

Speller doesn't answer correctly

my code is // Implements a dictionary's functionality #include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <strings.h> #include "...
1
vote
0answers
27 views

cs50w Project 1: Web page running very slow

I just finished my book review page for project 1 and everything is working fine, but the site takes forever to load certain parts. When trying to log in or create a new account, or when trying to ...
1
vote
2answers
50 views

passing argument 1 of ‘strlen’ from incompatible pointer type

How to make this working? How to properly find the length of these 8 listings? Whenever I execute it gives me following error. *passing argument 1 of ‘strlen’ from incompatible pointer type * #...
1
vote
1answer
57 views

Speller (PSET5) has output that is exactly the same as the staff's solution, but check50 returns many errors. What's happening?

My speller program (part of pset5) works well and the output exactly matches that of the staff's solution. However, when I run my program through check50, I still get several errors per their script: ...
1
vote
0answers
148 views

Pset3 Tideman: lock_pairs skips middle pair if it creates a cycle

I'm having issues figuring out how to solve this problem without using recursion (I'm not sure how to solve things recursively). Its a program that determines the winner of a Tideman election and I'm ...
1
vote
5answers
100 views

check50 errors - runoff

I've been trying to resolve these myself for too long - I'm officially stuck These are the check50 errors I get: :( tabulate counts votes when multiple candidates are eliminated :( find_min ignores ...
1
vote
1answer
36 views

Pset5 Speller — Conditional jump or move depends on uninitialised value(s); Uninitialised value was created by a stack allocation;

My code is able to pass all the tests in check50 except the valgrind one. Here is the error when I run the valgrind. Could someone help me, please? // Implements a dictionary's functionality #...
1
vote
0answers
47 views

PSET3 - if(!vote(i, j, name)) {return 4}

I have a question regarding the reasoning behind If at any point, the ballot is deemed to be invalid, the program exits. from pset3. Why is this functionality included in runoff but not in plurality? ...

15 30 50 per page
1
2 3 4 5
57