Questions tagged [cs50-ide]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
5 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
11 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
10 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
27 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
23 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
12 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
47 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
24 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
13 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
25 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
20 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
88 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
31 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
42 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
96 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
44 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
30 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
10 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: ...
0
votes
0answers
14 views

I cannot start my IDE on Windows 8, due to some Cloud 9 issue on libevent and tmux

I have attached the screenshot of the same. How should I proceed? Step wise - https://imgur.com/OJvoJZa https://imgur.com/Rrb63Fy https://imgur.com/RsftNQk https://imgur.com/CBcC0Xw https://imgur.com/...
1
vote
2answers
131 views

How can I get the cs50.h to run in Visual Studio Code?

I downloaded both the cs50.c and cs50.h files from GitHub and put them in the folder where all the header files are. VSC even recognizes the #include <cs50.h> in the code but I get the error in ...
0
votes
0answers
19 views

cs50 IDE Week 1 submission

I have just finished week 1 and now i m trying to submit it, however I cant seem to do it. How do you submit week one (hello.c) on GitHub? I've looked on GitHub and on the Edx site, but still cant ...
1
vote
1answer
23 views

Cant get past the ls command in hello.c

I cant get past the List command in hello.c, and i'm not sure if i'm supposed to get something in the terminal after i type in ls, so i kept going and typed clang and i get the error message. I've ...
0
votes
0answers
24 views

i cant access cs50 ide

This is taking longer than expected. If you think there might be an issue, contact AWS Support. POST /desktop/era Status Page AWS Cloud9 Installer Can we quickly set up AWS Cloud9 on your environment? ...
0
votes
1answer
16 views

No rule to make target 'mario'. Stuck on where I am going wrong. Cannot compile existing file

I have viewed similiar question/answers on this site and still cannot troubleshoot where I am going wrong. The mario.c file exists in the mario folder. It just will not compile from what I can tell. ...
1
vote
1answer
193 views

Logical flaw in Problem Set 3 - Tideman?

Whilst writing my code for Tideman in Problem Set 3, I had many problems with the lock pair function, as I am very new to coding. Some research I did online also showed that this question is ...
0
votes
0answers
57 views

Can you help me making my pset6's 'dna' more dynamic

I want suggestions on how to manage my so many lists in the loops. Hello helpful soul, I actually can't figure out how I can declare lists more dynamically, and thus using them in the loops easily. ...
0
votes
0answers
34 views

CS50 - Pairs Array Number format for tideman - Sort Pairs

TLDR Can someone please tell me what format check50 is looking for in the pairs array of the tideman assignment. Is is: the candidates sorted by their win the candidates padded in some way with ...
0
votes
0answers
25 views

How to fix this? I can't use debug50 in python

This is the output when I use debug50 in phyton Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/...
0
votes
1answer
108 views

CS50 Recover - Need Help

Please help me by reviewing the code below. Cant seem to crack it. Errors are as below: :( recovers 000.jpg correctly timed out while waiting for program to exit :( recovers middle images ...
0
votes
1answer
64 views

FIlters (more) - Unable to crack Edge

Below is my code for Edges. Please help me by highlighting the errors. Thanks in advance. Errors I am getting are: :( edges correctly filters middle pixel expected "210 150 60\n", not &...
0
votes
1answer
716 views

clang- error: linker command failed with exit code 1

I use the CS50 online IDE and I have the following error: ex1.c:(.text+0x1b): undefined reference to `get_int' clang-7: error: linker command failed with exit code 1 (use -v to see invocation) Code #...
0
votes
1answer
124 views

too few arguments to function call, at least argument 'format' must be specified

I run the C program and I get the following errors. 4:20: error: too few arguments to function call, at least argument 'format' must be specified int x= get_int(); /usr/include/cs50.h:82:1: note: '...
0
votes
1answer
53 views

initializer element is not a compile-time constant and expected identifier or '(' errors

I used the CS50 IDE for C on cloud9. When I run the program I get the errors 3:8: warning: **implicit declaration of function 'GetInt' is invalid in C99 [-Wimplicit-function-declaration] int x= ...
0
votes
1answer
88 views

SPELLER(pset5), output of misspelled words is more than actual

There are two problems with the code: WORDS MISSPELLED are around five time normal. It is showing 5440 misspelled words while ideally there are around 900 such words(staff's solution). In the bool ...
0
votes
0answers
68 views

Pset4 , Filter (Reflect)

I am getting the following error in the reflect part of my filter and I am not sure what it means and how should i avoid it helpers.c:71:23: error: subscript of pointer to function type 'void (int, ...
0
votes
1answer
21 views

CS50 IDE ONLINE not opening

for the last two months, I am using cs50 ide online for solving problem sets. currently, I can't able to open my cs50 ide. what I have to do now.? where to get a solution..?
0
votes
1answer
62 views

CS50 IDE - “This is taking longer than expected.”

I am having most of the time problems accessing the CS50 IDE (sometimes it works). I am using chrome and after I log in with my github account, it is always stuck on the "cloud 9" window and giving ...
0
votes
1answer
43 views

Why am I receiving a linker error on my function when it is defined in the file?

I'm in week 2 of cs50 and am currently working on the Readabilty problem. I've written a function named count_letters under main and have declared it at the top of the programm. However when I attempt ...
0
votes
1answer
72 views

Why is my (readability.c) file in ~/.c9/metadata/environment/readability/ instead of ~/readability?

I'm doing pset 2 and did the following in the CS50 IDE (copied directly from my terminal): ~/ $ cd ~/ $ mkdir readability ~/ $ cd readability ~/readability/ $ open readability.c and I couldn't find ...
1
vote
0answers
15 views

Why doesn't IDE50 highlight the “IN” keyword in SQL?

Highlighting works well with all other keywords I tried, this is confusing to people who might think (like me, originally) that the keyword is wrong/inexistent...
0
votes
0answers
63 views

I need help pset4 blur filter(Less)

bool exist(int height, int width, int h, int w) { if (-1 < w && w < width && -1 < h && h < height) { num++; return true; } return ...
0
votes
1answer
50 views

cs50 ide problem it did not open

what is this problem how can I solved it
0
votes
1answer
75 views

PSET4 Recover- code working fine except recovered image 49 does not match

I keep ending up with this last error on Check50 - any tips? int main(int argc, char *argv[]) { // Check for invalid usage if (argc != 2) { printf("Usage: Recover [...
0
votes
1answer
328 views

helpers.c not compiling for filter

I am doing filter less comfortable in pset4. My filter file compiles fine, but helpers.c gives the following error : clang-7: error: linker command failed with exit code 1 (use -v to see invocation) ...
0
votes
1answer
338 views

Week 3 - Plurality Code Will Not Compile on CS50 Check

I'm having an issue with CS50's check50 utility. My week 3 Plurality code is working, but when I submit it to be checked I get these results: Results for cs50/problems/2020/x/plurality generated by ...
1
vote
2answers
7k views

cs50 pset3 runoff tabulate

i have completed the problem set however when i check, this is the only problem. :) tabulate counts votes when all candidates remain in election :) tabulate counts votes when one candidate is ...
1
vote
0answers
81 views

View README.md in CS50 IDE?

I've created my README.md file for my final project. I'd like to check how it looks before submitting. How can I "preview" markup files in the CS50 IDE?
0
votes
0answers
32 views

How to create a new Workspace in AWS

I have migrated my legacy CS50 IDE from cs50.io but something does not seem to be set up correctly. Many of my old source code files no longer compile and I'm not clear on how to use the help50 or ...
1
vote
0answers
57 views

smtplib.SMTP not working in IDE but works locally

Code: import smtplib server = smtplib.SMTP('smtp.gmail.com:587') It works with my local python setup but ide shows following error: File "/home/ubuntu/project/application.py", line 38, in contact ...