Questions tagged [cs50-ide]
The cs50-ide tag has no usage guidance.
225
questions
0
votes
0
answers
5
views
How do i resolve "Ssh key is weak" error trying to add new SSH key to git hub
Please how do I fix error in the title
I get this when I try to add new SSH key to GitHub the key was generated using
ssh-keygen as instructed on the cs50x course on edx am unable to proceed with the ...
0
votes
0
answers
3
views
I really am not comfortable using VS Codespaces or the CS50 IDE, is it possible that I could use Sublime Text instead?
I am not accustomed to programming with the VS Code or CS50IDE. If it is possible, can Harvard allow me to use Sublime Text. Only asking if it is possible otherwise I will use the suggested ones.
0
votes
0
answers
19
views
How add Cs50.h Library in my mobile
currently I'm using cxxdroid mobile ide for c programming but this ide does not have c50.h directory. How i add cs50.h library in this app ?
0
votes
0
answers
35
views
visual studio terminal is very slow
I am having some troubles with VS , specifically the terminal response it is very slow , I have tried to open it from different browsers , however it is the same. and it keeps asking me to reload the ...
0
votes
1
answer
60
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
16
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
56
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
11
views
Unable to update the database in flask
I am building a CRUD application for student records but my update functionality is not working.
I am trying to update the record by using the update query, it is not giving error but its not updating ...
0
votes
0
answers
28
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
15
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
19
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
0
answers
5
views
I am having trouble with filter (more) edge detection: it returns a white image, i just can seem to find where i am going wrong
void edges(int height, int width, RGBTRIPLE image[height][width])
{
int Gx_arr[3][3] = { {-1, 0, 1}, {-2,0,2},{-1,0,1}};
int Gy_arr[3][3] = { {-1, -2, -1}, {0, 0, 0}, {1, 2, 1}};
...
0
votes
1
answer
36
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)
{
max=candidates[i]....
0
votes
0
answers
41
views
How do you check if a value is fractional? HEAR ME OUT FIRST
This is from cs50 finance:
Text:
:( buy handles fractional, negative, and non-numeric shares
Cause
application raised an exception (see the log for more details)
Log
sending POST request to /login
...
0
votes
1
answer
34
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
14
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
15
views
CS50 Bot - resend invitation?
I have some students in CS50x that did not accept the invitation from CS50 Bot. This was more than 7 days ago, and so the link doesn't work any more. How do I get CS50 Bot to resend the email?
0
votes
0
answers
29
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
0
answers
106
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
1
answer
66
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
18
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
24
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
15
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
0
answers
25
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
1
answer
21
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
47
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
33
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
81
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
990
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
25
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
45
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
0
answers
116
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
1
answer
32
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
255
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
51
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
54
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
176
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
16
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
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
1
answer
55
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
14
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
111
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
54
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
32
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
32
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
82
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
22
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
1
answer
48
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
1
answer
35
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