Questions tagged [cs50x2017]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
1k views

How to get and download edX CS50 verified certificate?

I have completed all psets and final project in 2017 and verified my ID with edX. However, I cannot find where the verified CS50 certificate is. Does anyone have idea?
eddiewong's user avatar
2 votes
2 answers
240 views

PSET2, crack.c Did this problem fall out of the sky from week 115? Am I overthinking this?

This is the spec: Specification Design and implement a program, crack, that cracks passwords. Implement your program in a file called crack.c in a directory called crack. Your ...
phindex's user avatar
  • 25
2 votes
1 answer
549 views

Pset4 resize/less - rewrite (Hint needed)

I was trying to implement the rewrite method. the code compiles without error but I always get a weird result bitmap. Here is the code I wrote: #include <stdio.h> #include <stdlib.h> #...
Niral Khambhati's user avatar
1 vote
1 answer
191 views

New users not being entered into database

I'm trying to code the register function for 2017 pset7. The proper screen comes up, and the program behaves correctly for missing username, missing password, incorrectly repeated passwords, and ...
Brian's user avatar
  • 21
1 vote
1 answer
1k views

CS50x2017 Pset7 quoted.html Extracting Dict Items in Template?

I have this route in application.py for quote: @app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): """Get stock quote.""" # if user reached route via POST if ...
Osman Zakir's user avatar
1 vote
0 answers
58 views

CS50 Final Project: Unique URL for each user of my flask app (2 of 2)

I have a pending question here: CS50 Final Project: Unique URL for each user of my flask app (posted two days ago) regarding the implementation of unique URLs. This unanswered question was in fact ...
Alex Chan's user avatar
  • 121
0 votes
2 answers
1k views

any idea how to fix Mario more comfortable problem "expected output"

when I executed i have this error :) mario.c exists :) mario.c compiles :) rejects a height of -1 :) handles a height of 0 correctly :) handles a height of 1 correctly *:( handles a height of 2 ...
Gowtham Ande's user avatar
0 votes
1 answer
12k views

Pset1 error: expected identifier or '('

I want to create a simple program wherein the user inputs any number but only a postive integer is accepted (like the kind mentioned in the CS50 pset1 water walkthrough video) Ive been onto this for a ...
Vida's user avatar
  • 7
0 votes
1 answer
409 views

Pset 4 : recover

I can't understand why my code is giving segmentation fault. It seems alright to me. Would be great if somebody could point out the error to me. Tried debug50 but not able to understand what is fault ...
bharat singhal's user avatar
0 votes
1 answer
199 views

Pset8 - mashup (2018 or 2017): Downloading distribution code does not include txt files

I'm having some issues with downloading the distribution code for Pset8 (mashup). I am getting everything except US.txt and readme.txt. I do get the other text file, requirements.txt. Is anyone ...
brand n00bian's user avatar
0 votes
1 answer
431 views

PSET5: Segmentation Fault in Speller

I realise there are probably lots of other errors in my code (which you are welcome to point out...PLEASE) but when I use debug on this code, it shows a segmentation fault when calling the HASH ...
user1480135's user avatar
0 votes
2 answers
41 views

Give a Function access to earlier value

If the main block of code gets a value from the user, assigns it to an integer, and then changes that interger's value, is there a way for a function (created outside the main block of code) to access ...
Chaim Tzvi Kalish's user avatar
0 votes
1 answer
9k views

Can someone please tell me how to use help50 in the CS50 IDE terminal window?

I want to understand error my program using help50. I would be very grateful if someone tells me the command for this.
sk.76's user avatar
  • 312
0 votes
1 answer
27 views

Can anyone explain that attendence algoritm of week 0 lecture?

The week 0 lecture of CS50 edx. I was not able to understand how did we come to 546 student.
Rishabh Gupta's user avatar
0 votes
2 answers
75 views

CS50 Pset7: Final Questions before Wrap-Up

I am finally done with implementing my stock-trading website. Anyhow, I have some last questions before wrapping up and hope that someone can help me out to make sure I understand everything in this ...
Alex Chan's user avatar
  • 121
0 votes
3 answers
379 views

Pset1: Water- Infinite Loop

Ive encountered an infinite loop while writing code for the water assignment of pset1 Yeah, I realise Ive made a complete mess. Now Im lost as to how I should proceed further. Also I did the same ...
Vida's user avatar
  • 7
0 votes
1 answer
144 views

Pset1: ~/workspace/pset1/ not working

Ive gone through a range of questions on stackexchange regarding this problem but nothing seems to solve it. The problem is that When i use "~/workspace/ $ make hello" the program is running ...
Vida's user avatar
  • 7
0 votes
1 answer
997 views

Pset6 2017 - 'str' object has no attribute 'isaplha' - caesar.py

My code for caesar.py receives errors when it checks if the plaintext is alphabetical, lowercase, or uppercase. The terminal says: 'str' object has no attribute 'isaplha' Am I using the isalpha ...
SuperNovaCoder's user avatar
0 votes
1 answer
327 views

Google is not letting me get API key

In pset8, I went to developers.google.com/maps/web as mentioned in the documentation. But google redirected me to developers.google.com/maps/overview. And there is no option to get an API key in the ...
Amol Venkataraman's user avatar
0 votes
1 answer
64 views

Vigenere's bug: applies cipher to spaces (all characters)

I'm working on the Vigenere problem and I've came up with the following code: for (int i = 0, j= 0, p = strlen(s); i < p; i++, j++) { int b= (j % strlen(argv[1])); if (isupper(s[i])) {...
Paula Cid's user avatar
0 votes
1 answer
499 views

CS50 2017 crack.c not working properly

Can't understand why my code is not working. Tried 2 different loops to arrive at the solution but the first one does not arrive at anything and keeps on going: #include <stdio.h> //#include &...
Giovanni Piacenza's user avatar
0 votes
1 answer
64 views

game of fifteen help

yet again. i started working on the game of fifteen, i got it to work. But i had a lot of struggle with the won function. although it now works, i still don't know why it works. it was pretty much ...
trillkillahkam's user avatar
0 votes
1 answer
240 views

cs50 pset 6 greedy

import cs50 def main(): count = 0 while True: print(" O hai ! How much change is owed ?") input = cs50.get_float() if input >= 0: break input = ...
richa sharma's user avatar
0 votes
1 answer
224 views

CS50 : pset4 resize(less comfortable)

I have worked on the code for 6 hour and finally on checking manually these codes are working fine. I have tried both small and large bmp from 1 to 6. It worked. But same is not working in check50. ...
umar123's user avatar
0 votes
1 answer
70 views

caesar.c questions

I have, I think, finished caesar.c. However passing it through check50, returns the following. Yet from what I can see in my code, and when i run my program vs the one in /home/cs50/pset2/caesar.c,...
zemation's user avatar
0 votes
1 answer
238 views

Caesar PSet2: Check50 deems correct looking outputs incorrect

I'm making my way through Caesar.c in PSet2, and am struggling to overcome all these check50 issues. They look identical to me, but I'm sure I made some sort of mistake. Let me know if seeing some ...
TroyHP's user avatar
  • 3
0 votes
1 answer
51 views

Limits of data type as explained in Week-1

In week-1 of CS50 course to introduction to computer programming, we are explained about the limitations of data types that are used in computers nowadays and how the computation 1/10 to 50 decimal ...
Arjun599's user avatar
0 votes
1 answer
8k views

Jinja template exception: "jinja2.exceptions.TemplateSyntaxError"

I have an exception thrown from a template, which reads like this: "jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'holding'. Jinja was looking for the following tags: 'endfor' or '...
Osman Zakir's user avatar
0 votes
1 answer
379 views

How to represent current date and time of purchase in table

I need to know how to represent the date and time of purchase correctly in my table for storing who bought what at what price and when (as per the specs for buy). I tried to use datetime.datetime.now(...
Osman Zakir's user avatar
0 votes
1 answer
509 views

Pset6 2017 application.py Sentiments

I can't tell how to get the correct scores for positive, negative and neutral under the "TODO" in application.py, here: # TODO positive, negative, neutral = 0.0, 0.0, 100.0 That isn't all we have ...
Osman Zakir's user avatar
0 votes
1 answer
74 views

Twitter App error on Sentiments

When I tried to add my cellphone number to my Twitter profile (since it seems like it's required to be able to create a Twitter App to use for Sentiments), and I entered the confirmation code they ...
Osman Zakir's user avatar
0 votes
1 answer
444 views

CS50 2017 Vigenere Python "IndexError: list index out of range"

Um, another error, another thread? O.o Well, anyway, here's the code: import cs50 import sys if len(sys.argv) == 1 or len(sys.argv) > 2: print("Usage: python vigenere.py <key>") ...
Osman Zakir's user avatar
0 votes
1 answer
51 views

cs50 general psets question about 2017 version

It seems that cs50 2017 /less and /more comfortable versions of psets are somehow swapped. I got confused several times during working through psets where I found less comfortable versions to be ...
bobby_pin's user avatar
0 votes
2 answers
832 views

PHP removal from CS50

Hello dear CS50 folks, I was wondering - just out of curiosity - why PHP was removed from CS50 ? And why choose Python instead ? If someone could give me an elaborate answer, explaining the ...
WitoldW's user avatar
  • 101
0 votes
1 answer
24 views

I can't view any of the CS50x course material. Pls help me

I have completed upto pset2. But after the course upgrade I can neither view the Cs50x 2017 material nor the older CS50x 2016 material. Are they still updating their servers or is the problem here on ...
Abhishek Patel's user avatar
0 votes
0 answers
37 views

Map not appearing

I implemented the configure() function. It worked for a few days but after that the map did not appear. There is only the search textbox which also doesn't work now. When I check the javascript ...
Amol Venkataraman's user avatar
0 votes
1 answer
320 views

IDE is not letting me hash the password. Should I change th hashing algorithm as it tells me to?

I implemented the register function for pset7. It went to the register page that I had implemented. I gave the required credentials and clicked Register. But instead of registering with the ...
Amol Venkataraman's user avatar
0 votes
1 answer
52 views

Submissions from previous courses

I finished cs50x a few days ago and I would like to get a certificate at edX. However, cs50x2018 has started and my scores from 2017 have disappeared at cs50.me. Is there any way to recover them?
Donato's user avatar
  • 3
0 votes
1 answer
206 views

Can I complete CS50 for a verified certificate after 31 Dec via Edx?

I don't know if I can make the CS50 course by 31 Dec. I planned to get a certificate. What would happen if I upgrade the course to get a verified certificate and then not finish it this year, but some ...
Chris's user avatar
  • 103
0 votes
1 answer
51 views

Check50 for find-less in ps3 shows me a './sort' error

I implemented the helpers for sort and search. Using basic implementations of quicksort and binarysearch. When I ran check50 cs50/2017/x/find/less there was a weird error for the sorting part: :) ...
Chris's user avatar
  • 103
0 votes
1 answer
86 views

CS50 Pset3 "Fifteen" Works but doesn't pass Check50

My code for pset3 "fifteen" works perfectly when I play it—board sizes fit, goes in descending order, blank space prints as a 0 etc. etc. but for some reason, it won't pass any check50 checks past "...
ixxheartxxcandy's user avatar
0 votes
1 answer
289 views

How are script.js and application.py linked?

Question Why am I able to pipe variables from my database into my script.js file? I was able to pipe in "{{place_name}}, {{admin_name1}}, {{postal_code}}". script.js // configure typeahead $("#...
John Quinn's user avatar
0 votes
1 answer
531 views

Pset7 Finance register NameError: name 'pwd_context' is not defined

def register(): session.clear() if request.method == "POST": if not request.form.get("username"): return apology("Missing Username!") elif not request.form.get("...
Iberico's user avatar
  • 29
0 votes
0 answers
25 views

Enjoying CS50, asked a question on SO (before I knew about this) and some of the comments have me concerned about CS50 now

Check out the comments in this answer to my question: https://stackoverflow.com/a/46768605/8561378 What's going on here? How can the reputation of CS50 be bad, or the "first chapters" definitely be ...
phindex's user avatar
  • 25
0 votes
1 answer
18 views

I need a hint only!

#include <stdio.h> int main(void) { float no1, no2, result; printf("Type your 1'st Number: \n"); scanf("%f", &no1); printf("Type your 2'nd Number: \n"); scanf("%f", &...
alex's user avatar
  • 3
0 votes
1 answer
26 views

Can someone help with what is wrong with this code? Seems something is being overwritten

Firstly, I am getting some valgrind errors. Secondly when I debug the code it seems as if trav gets overwritten. As in, if I am reading caterpillar from the dictionary, it seems to start over again a ...
arsenalist's user avatar
0 votes
1 answer
199 views

How can i implement this speller unload function resursively?

I am having problems implementing the unload function in speller. I am trying to do recursion but running into some issues. Here is unload with the function below that I am calling. I am getting the ...
arsenalist's user avatar
0 votes
0 answers
133 views

After update50, my texts shown in text editor are still plain white

I am ready to do pset2! However, after I run update50 and close and re-open terminals, I found that my texts in text editor are all white as below: I found a question asked before here, and I did run ...
Tzu You Lin's user avatar
0 votes
2 answers
63 views

pset4 recover Segmentation fault

my code can compile but when running it will return Segmentation fault. And when I apply "echo $?" to the code, it would return 139. Here is my code. /** * Copies a BMP piece by piece, just because. ...
Haonan Sun's user avatar
0 votes
1 answer
76 views

CS50 Pset7: Pset7 questions in preparation for final project

I have two questions arising from this problem set which I think can eventually help me with implementing my final project: Atop every page of the stock trading website, whether it be the LOGIN, ...
Alex Chan's user avatar
  • 121