Questions tagged [cs50-ide]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Docker: How to start cs50 ide offline in terminal? (MacOS)

I use the command "ide50 start", but it always starts ide50:latest(online version), instead of the offline version. However, I can use the command "docker run -d -p 1337:1337 cs50/ide:...
0
votes
1answer
21 views

PSET 8 Finance “:( buy handles valid purchase exception raised in application: TypeError: 'method' object is not subscriptable”

I've been having a problem with CHECK50, I cant seem to find the right object to change. This is the log I get sending GET request to /signin sending POST request to /login sending POST request to /...
0
votes
2answers
34 views

why am i not returning a value for my function?

ok after much help i finally get what im supposed to be doing. this error code says i'm not returning a function and then tells me things i know are wrong... scrabble.c:58:1: error: non-void function ...
0
votes
1answer
33 views

can someone translate this to human?

scrabble.c:64:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type] } ^ 1 error generated. make: *** [<builtin>: scrabble] Error 1 its for this guy(...
0
votes
2answers
39 views

my terminal is not liking that I'm trying to pass a string into an int. Isnt there a way to force that?

so im getting scrabble.c:20:32: error: incompatible pointer types passing 'string' (aka 'char *') to parameter of type 'int *' [-Werror,-Wincompatible-pointer-types] because of this line specifically ...
0
votes
1answer
28 views

How can I use debug50 when it says “Command not found” every time I try to run it?

I am using cs50 sandbox and have tried to use debug50 over the past few weeks with no luck; I keep googling, watching CS50 videos, not just Professor Malan's lectures, but also Professor Doug Lloyd's ...
0
votes
1answer
15 views

error code “linker command failed” on custom function

My code will compile, but I'm getting "linker code failed" on my custom function. So I'm not implementing this custom function as I intend to. I still have to deal with case sensitivity and ...
0
votes
0answers
23 views

CS50 IDE HTML Preview not working

When I use the Preview function in the IDE to view my HTML file, I just get the text Cannot GET /_static/hello.html. Any ideas?
0
votes
0answers
16 views

check50 is rejecting me with pset1 cash (like she always does) it says 0.41 is coming back as 3 when they want 4. why?

ok so to me it sounds like a conditions issue. i'm going up to and not through a number or i'm not adding this one last penny when i should. i did this very differently than i've seen anyone do it but ...
0
votes
1answer
9 views

what's going on here? I know there shouldn't be a semicolon after my main function but miss terminal wants one. why?

[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/M9q3V.png if I put the semicolon im told i need "(" on line 8. I have a curly brace there. its before a "do while&...
0
votes
1answer
20 views

CS50 Task meow.c custom made function doesn´t work

I think I did exactly like he showed. But there comes an error message. When running it through help50 make meow it says: You seem to be passing in too many arguments to a function on line 8 of meow.c....
0
votes
1answer
13 views

Alright, check50 is rejecting my mario pset saying that I'm printing an extra character and I'm not sure why. why?

after beating my head against the wall i finally got it, but one small issue. I'm apparently printing out an extra character in each line. how do i fix this?
0
votes
1answer
10 views

Why is the command line prompting me again when my integer meets my conditions?

So I have a "do while" loop that asking my user to give me an integer between 1 and 8 and then print out that number of hash marks like so But when i type in my integer its just keeps ...
1
vote
0answers
18 views

HTTP Server not working

When running "http-server" in the IDE and attempting to open the link I am given the message "Safari can't find the server." I checked the CS50x status log and everything seems to ...
0
votes
1answer
24 views

why is my terminal telling me a file doesn't exist when I'm looking at it in the file tree?

This is a recurring problem for me and it is very frustrating. ill make a file I'll start with ls cd and move just to see where its at. I'll get rid of it and make a new one. I'll refresh the file ...
0
votes
0answers
22 views

what is this “unhandled error” thats in red on my ide? how do i fix this “unhandled error”?

this is the error message. its not in my terminal. im not sure which file they are referring to. Could i have malloced memory and forgot to free it, or is one on my programs running? i had to act ...
0
votes
1answer
18 views

What does “no rule to make target” mean in terminal?

since you guys are my life line I think I'm allowed to ask dumb questions. I'm getting "no rule to make target 'list'", in my terminal. I know I've seen this before but I cant remember how ...
0
votes
1answer
21 views

why is my terminal freaking out? what did i do?

i probably messed up somewhere but im not sure how. no matter what file im on my terminal is repeatedly displaying "no such file or directory" i think its a hang up from my issues creating ...
0
votes
1answer
23 views

ls isnt giving me a.out in the terminal like like i want it to. why?

I made the directory. mkdir ~/pset1/hello/ cd ~/pset1/hello/ now ls isn't giving me a.out so i cant compile. it says "no such file or directory" pretty sure i did that. I've made probably ...
0
votes
1answer
16 views

why am i getting error codes for and “expected identifier” when there is one there in my code?

I can copy verbatim what my instructor types in and check it twice. when i go to compile the code it tells me hi.c:4:1: error: expected identifier or '(' { ^ 1 error generated. I have tried deleting ...
0
votes
1answer
34 views

Different results with check50

I'm having different results with check50 with the same code. The code works normally if I type. Sometimes all the results show correct #include <cs50.h> #include <ctype.h> #include <...
0
votes
1answer
11 views

IDE.CS50.io can't get FireFox to full screen. Tried the F10 and F11

I'm trying to get Firefox to display IDE.CS50.IO in to full screen mode, which I thought was F10 or F11 and neither works. Thank you kindly, John
0
votes
1answer
35 views

Easy way to change python version to 3.8.7 in IDE

How do I change the python version to 3.8.7 in IDE I have tried installing python, and using the portable version but just cant find an answer.
0
votes
1answer
19 views

Input Problem in Char 'P' PSET2 Substitution

QUESTION When i put cipheralgorithm (which is a function that is making encryption) in comment section (/*) everything goes perfect i can get input when i type ./substitution ...
0
votes
2answers
105 views

CS50 IDE gives error for flask run

I was able to run flask run till yesterday. But today it is not working, it has been giving errors for SQL and I have been able to code today. It gives me this error continuously. ERROR: Error on ...
1
vote
1answer
93 views

What's the next step to setup cs50 ide offline?

i have installed docker and installed ide50 when i run ide50 start it shows this: 8082/tcp -> 0.0.0.0:8082 1337/tcp -> 0.0.0.0:1337 8080/tcp -> 0.0.0.0:8080 8081/tcp -> 0.0.0.0:8081 ...
0
votes
1answer
22 views

Program compiles and produces required output in caesar from CS50 but segmentation fault due to lack of memory. What to do next?

My program compiles and produces the required ciphertext in caesar problem but when the input has too many characters, I get a segmentation fault after a specific number of ciphertext characters are ...
0
votes
0answers
38 views

pset2/caesar handles lack of key failed to execute program due to segmentation fault [duplicate]

#include <cs50.h> #include <math.h> #include <stdio.h> #include <string.h> int key(string input); int main(int argc, string argv[]) { int l = strlen(argv[1]); int ...
0
votes
0answers
104 views

Running web applications (Django and/or Flask) on CS50 IDE

Hope you all are doing great. Had a quick question about the CS50 IDE and running web applications on it. One thing I noticed when running my web applications on CS50 IDE either by using "python ...
0
votes
0answers
19 views

Issue using Mingus package in CS50 project: /bin/sh: 1: lilypond: not found

I am trying to use the Lilypond module from the Mingus package (for my final project) in CS50 IDE, but while running the following python code (as provided in the docs), it returns an error: >>&...
0
votes
0answers
19 views

Parsing Error: Unexpected token in Javascript

For my final project I'm implementing a simple chrome extension in Javascript but I keep getting the error "Parsing Error: Unexpected Token :" However I copied this example code directly ...
0
votes
1answer
16 views

reflect for cs50. Trying to reflect an image, but only the first row pixels is swaped

So, my task is to reflect image pixel by pixel to make a mirror image. Here is my original code for the function void reflect(int height, int width, RGBTRIPLE image[height][width]) { int tempr, tempg, ...
0
votes
1answer
35 views

Error in CS50 IDE Terminal

I was working on the cs50 IDE and noticed this happen a couple of time - As you can see in the last terminal in the last entry the substitution changed to subst i don't know why. This happens mainly ...
0
votes
0answers
17 views

In pset2: why i am able to iterate through the for loop for just one ? and also the program is processing after looping once?

#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> int main(void) { string str= "Hello"; int l =strlen(str); string str2[l-1]; ...
0
votes
0answers
18 views

i am Unable to Generate the ssh-key ,and what does ssh-aget mean and how to generate one?

i am unable get through the process of the SSH-key creation,below is the terminal error i am getting related the ssh-key.hope you all there try to figure this tedious quest of mine... ~/pset1/hello/ $ ...
0
votes
1answer
122 views

CS50 AI Project 0a CS50 IDE bug

I am a high school student currently enrolled in the CS50 AI online edX course. I downloaded the distribution code for Project 0a, but the CS50 IDE is not able to open the large csv files because it ...
0
votes
1answer
25 views

Cash program only outputs input*4

I'm very new to coding and am really struggling with pset1- cash. I watched some tutorials and walkthrough videos, and with my limited knowledge, I cannot find any issue in the code I made. With the ...
0
votes
1answer
15 views

Not able to access CS50 sandbox

I am not finding the link that directs me to CS50 sandbox. So, I am using the CS50 IDE. But when I am submitting the assignment in CS50 IDE the score is not getting updated. What should I do??
0
votes
1answer
241 views

Can I reset all my progress for Week 2 in cs50 IDE?

I am starting the Hello project for cs50 and I made a small mistake in my starting code. In attempting to fix my error, I dug myself deeper into a hole (or a chasm) of mistakes. I think it would be ...
0
votes
1answer
68 views

Typedef uint8_t BYTE returns unknown type name

My recover.c programme returns unknown type on the cs50 ide, but on a different IDE, it compiles but stops short at the if statement that checks if it is a valid jpg file. Then returns segmentation ...
0
votes
1answer
77 views

Implicit declaration of function of a declared prototype PSET4

I have this error code: helpers.c:56:13: warning: implicit declaration of function 'swap' is invalid in C99 [-Wimplicit-function-declaration] swap(height, width, image, i, j); ^ helpers.c:62:6: error:...
0
votes
1answer
31 views

i m getting segmentation fault in my code for cs50 caesar

#include <stdio.h> #include <cs50.h> #include <stdlib.h> #include <ctype.h> #include <string.h> int main(int argc, string argv[]) { //getting correct input for KEY ...
1
vote
1answer
338 views

How to make the pong programs in CS50 run using Visual Studio Code application? How do I compile the Lua code and run successfully?

I have Visual Studio Community as well as Visual Studio Code installed on my machine. I am operating under Windows 10. I do not see any directions on how to launch the various pong programs? Is it ...
0
votes
0answers
117 views

PSET 6 DNA! Stuck for so long

so the problem I face is when computing the greatest number of STR's in a sequence. I was able to hardcode "GATA" and compute the greatest sequence for a textfile using my sequencecount ...
0
votes
1answer
68 views

Pset1 Creating and Changing Directory Does Nothing

For the first problem set, I attempted to create and change the directory with the following commands: $ mkdir ~/pset1 $ cd ~/pset1 $ mkdir ~/pset1/hello $ cd ~/pset1/hello Despite doing these ...
0
votes
2answers
89 views

are we supposed to use the set from hello.c to begin with Mario (less comfortable) or do we need a new terminal and file?

the first thing that the Mario instructions say is this : First, create a new directory (i.e., folder) called Mario inside of your pset1 directory by executing ~/ $ mkdir ~/pset1/mario. I do not ...
0
votes
0answers
128 views

cs50 pset6 DNA, minor differences in counting STRs |Spoiler entire code included|

My code counts STRs for some people correctly, but for others the difference is very small. For example for python dna.py databases/large.csv sequences/5.txt expected output is Luna, whose STR counts ...
0
votes
0answers
69 views

PSET 6 - credit, pythonic or not?

I didn't do credit for problem set 1 (I chose less comfortable) so I don't know what the C implementation was. I was wondering if you guys think this is too C-like or if it's okay for python code. Any ...
0
votes
1answer
31 views

PSET 5 SPELLER - seg fault

I need help with my unloads function. I keep getting a segmentation fault on "while(cursor->next != NULL)." When I hover over the "cursor->next" part it says no value. I don'...
0
votes
1answer
11 views

All sequel Queries getting Implemented, ignoring the conditional statements

In the function buy when I am purchasing some stock, every query that i have mentioned on different conditions are getting implemented, I am unable to guess as why It is happening. Here is my code: ...

1
2 3 4 5