Questions tagged [cs50-ide]

The tag has no usage guidance.

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

Transitioning from CS50 IDE to VS Code

I recently finished with PSET9 and wanted to transition from CS50 IDE to VS Code for the Final Project. Problem is I don't know what exactly I need to setup to make it all work. I guessed that I just ...
0
votes
0answers
11 views

CS50 Week9 Finance I have an error in register

I'm struggling with register function in application.py since I am having error messages in check50 That says: :) register page has all required elements :( registering user succeeds expected ...
0
votes
1answer
18 views

My code gives error RuntimeError: no such table: File_Name

This is simplified version of my code from cs50 import SQL open("File_Name", "w").close() db = SQL("sqlite:///File_Name") id = 2 filename="hola" db.execute(&...
1
vote
1answer
16 views

Mario problem: Program got stuck at user input

// ** Below is the code of mario pset1, its taking input of width multiple times and not executing step after input// #include <cs50.h> #include <stdio.h> #include <math.h> int main(...
0
votes
1answer
12 views

Error when I try to use get_int

I have included cs50.h library, and I've ran the program after substituting a number in place of the get_int function and the program works completely fine, so something is wrong with using the ...
0
votes
1answer
10 views

CS50 ide. Not being being able to compile program

Whenever i try to compile the program in the cs50 ide this error shows up- make: *** No rule to make target 'string'. Stop. Can someone please help me out. Thanks!
0
votes
0answers
22 views

Why do Escape Sequences in C work differently when I compile code by using GCC?

Why do Escape Sequences in C work differently when I compile code by using GCC? For example, Input: #include <stdio.h> int main(void){ printf("Hello world\n"); } Output in CS50 ...
0
votes
1answer
20 views

How does the CS50 IDE recognize C functions in advance?

I notice that functions like printf() and toupper() appear in blue without the relevant #include statements in files with names ending in .c. What is happening under the hood to make this happen?
1
vote
0answers
25 views

I can't submit lab1 on CS50 2021

I can't submit my lab, I generated the code from Github, but the terminal keeps telling me that "Submission cancelled. You might be using your GitHub password to log in, but that's no longer ...
1
vote
1answer
25 views

'stadio.h' file not found

#include <stadio.h> int main(void) { printf("hello, world"); } when i type make hello clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-...
0
votes
1answer
23 views

I'm on pset9 right now and I'm running check50 on my code and getting :( logging in as registered user succeeds expected status code 200, but got 403

I've tried everything that I thought could be the problem but nothing is working. I registered and tried logging in but I keep getting '403 Invalid username and/or password' error This is my login ...
0
votes
1answer
77 views

CS50 LAB 2- SCRABBLE

Hi, anyone can help me. I can't get the result I need for this code. I need to compare words whether player 1 or 2 wins. I only get result for tie. I dont know which line to fix. I new in learning ...
0
votes
1answer
8 views

error : function definition not allowed here pls help

i got this error message pls help $ make triangle clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow triangle.c -lcrypt -lcs50 -...
0
votes
1answer
29 views

Lab "population' Why is it when i put 18 as an end population, the loop for 'start date' is initiated again after there being a condition of (e < s)?

#include <cs50.h> #include <stdio.h> int main(void) { int counter = 0; int apop; int e; // TODO: Prompt for start size do { int s; do { ...
0
votes
0answers
41 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
24 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
76 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
38 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
41 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
53 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
31 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
18 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
24 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
11 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
21 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
34 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
30 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
20 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
25 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
27 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
18 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
35 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
19 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
22 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
169 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
139 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
23 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
125 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
21 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
27 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
19 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
43 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
18 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
1answer
160 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
27 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
16 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??

1
2 3 4 5