Questions tagged [cs50-ide]
The cs50-ide tag has no usage guidance.
227
questions
0
votes
0
answers
6
views
HELP! CLEARING IDE50 FILES IN MACBOOK
I tried installing ide50 offline in my macbook, but its not working for me, it has now occupied a lot of space, I installed the ide50 through terminal. Can you help me remove its components? Its ...
1
vote
1
answer
38
views
Man pages not accessible from VSCode for CS50
I get this message with commands such as man printf :
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this ...
0
votes
1
answer
36
views
what can i do when i don`t have problem"no such file or directory" in my terminal?
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int first = get_int("Enter firstnumber: ");
int second = get_int("Enter second number: ");
if (second > first)
{...
0
votes
1
answer
76
views
CS50, week1, lab1, population of llamas, an error keeps showing up for the line of int years = 0, the error is expected expression, Why is that?
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// TODO: Prompt for start size
int start;
do
{
start = get_int("start size: ");
}
while (...
0
votes
0
answers
61
views
Pytest Import Module Error
I'm doing CS50 Python, in Unit Test Module I faced Import Module error in CS50 IDE Problem Set 5 using pytest there is two folder contains twttr.py file in twttr folder and other folder contains ...
0
votes
1
answer
38
views
PSET 5 "SPELLER" : Why this hash function resulting in SEGMENTATION FAULT(core dump)?
If i run it in another smaller program it works fine( returns the key correct) but on the pset 5 speller it gives segmentation fault. why?
0
votes
0
answers
7
views
Which password to enter in the drop down box?
After entering my Github Personal Token, There comes a box on the top centre of the screen asking for some password. I enter my Github password but I get the following message. Kindly help me with ...
0
votes
2
answers
51
views
Hello guys... Good day. I'm currently on the pset 4 (recover). program is working well, but the (valgrind) requirement in the check50 isn't checking
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
typedef uint8_t BYTE;
int main(int argc, char *argv[])
{
// Check that command-line arguments is 2
if (argc != 2)
...
0
votes
1
answer
23
views
cs50 ide problem
every time I write a code and I wnat ot run the simple programme I can't.
I tried to do everything I know, I made make hello and gcc hello.c, no one worked and give out message that tell me "bash:...
0
votes
3
answers
101
views
cannot compile code
the code and the terminal message photo
I have tried to compile this file as an application to make number input in arrays and then get the average of these numbers but the compiler always sends this ...
0
votes
0
answers
115
views
Tried to log in ide.cs50.io -- 500 Internal server error
i just started taking the cs50 course using Edx.org, i having trying to log into the CS50 IDE, but after GitHub authorization page it always returned an internal server error (500 bad gateway). Tried ...
0
votes
0
answers
84
views
HELP, error on VS Code, new programmer, CONTAINER ERROR
I'm in the middle of finalizing pset4/filter-more.
Just last night I got the error that you can see in the image attached.
What could be the cause? A virus?
I'm new to programming and really don't ...
0
votes
1
answer
182
views
Cs50 web programming project 1 wiki (django) runserver connection refused error
I am using Django for the first time. like the lecture said I tried python manage.py runserver but on clicking the link it doesn't show django default page. instead I see this
This site can’t be ...
0
votes
1
answer
886
views
cs50 can't check until a frown turns upside down
I am just wondering why the check result is like this:
:) hello.c exists
:( hello.c compiles
code failed to compile
:| responds to name Emma
can't check until a frown turns upside down
:| responds to ...
0
votes
0
answers
60
views
Scrabble won't do initial compile - return value error
I altered the return type for the compute_score function to several values, int, char, string, etc - I can't get the code to compile as is and I am ready to start trying out my actual code in it. Can ...
0
votes
1
answer
476
views
Unable to solve "can't check until a frown turns upside down"
I was doing the Cash problem. I entered all the possible output given in the question yet its showing error. Please help, here is my code below
.
.
.
.
#include <cs50.h>
#include <stdio.h>
...
0
votes
0
answers
74
views
how to use an offline ide, what things change?
I have a question concerning check50 and using an offline ide.
I'm having difficulties using vs code online.
I want to try using it offline. In order to check my code, do I need to download check50 ? ...
0
votes
1
answer
29
views
Need Help, why does my debug50 show a correct result but when i run the program, thus it shows a wrong answer
Here's my code
#include <cs50.h>
#include <stdio.h>
#include <math.h>
//1:26:36 / 2:24:59
int main(void)
{
long n;
int exc;
do
{
n = get_long("Enter your ...
0
votes
1
answer
50
views
No such file or directory (following video instruction)
See picture. Doing exactly the same as the instructor does in the vidoe but somehow it is not working.
Thanks in advance for your help!
0
votes
1
answer
75
views
Plurality CS50 Week3 pset3
// Print the winner (or winners) of the election
void print_winner(void)
{
int max =0;
for(int i=0; i<candidate_count; i++)
{
if(candidates[i].votes>candidates[i+1].votes)
...
0
votes
1
answer
38
views
Can't figure out why check50 sad faced these two
Edit2: Latest code (working)
int main (int argc, string argv[])
{
// Checking for proper command line input
if (argc != 2)
{
printf("Usage: ./substituion key\n");
...
0
votes
1
answer
24
views
pset4 CS50 IDE broken when opened card.raw
While I was working on pset4/recover I couldn't make it work as desired, so I wanted to check the first few bytes of card.raw manually. I double-clicked the file and now my cs50 IDE never loads and ...
0
votes
0
answers
349
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
2
answers
946
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
1
answer
24
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
1
answer
155
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
1
answer
118
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
1
answer
23
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
0
answers
166
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
1
answer
42
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
1
answer
252
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
1
answer
3k
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
1
answer
302
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
1
answer
77
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
1
answer
73
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
2
answers
1k
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
1
answer
80
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
2
answers
102
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
1
answer
697
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
1
answer
20
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
1
answer
10
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
1
answer
112
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
1
answer
17
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
1
answer
13
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 ...
0
votes
1
answer
949
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
0
answers
79
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
1
answer
127
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
1
answer
66
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
1
answer
133
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
1
answer
38
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 ...