Questions tagged [cs50-ide]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
7 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
10 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 ...
0
votes
0answers
7 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
44 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
19 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
26 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
74 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
29 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
28 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
13 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/...
0
votes
1answer
36 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
18 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
21 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
11 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
14 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
139 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
48 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
26 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
18 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
72 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
52 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
286 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
54 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
31 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
61 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
52 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
18 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
39 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
40 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
63 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
57 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
46 views

cs50 ide problem it did not open

what is this problem how can I solved it
0
votes
1answer
73 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
242 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
264 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
6k 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 ...
0
votes
0answers
51 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
29 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 ...
0
votes
0answers
103 views

CS50 PSET 8 Finance

Still coming up with the following errors in my code, which won't allow me to check for the rest of my functions. I ran Check50 and the following errors are: :( registering user succeeds ...
1
vote
0answers
54 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 ...
0
votes
1answer
83 views

how to switch to normal mode when using vim in CS50 IDE

how to exit vim insert mode in CS50 IDE? typing esc or ctrl+[ doesn't work.
1
vote
1answer
663 views

clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

Can some one please explain why am I getting this error?
0
votes
1answer
82 views

CS50 pset1 problems

I have started CS50 and I'm trying to complete my pset1. I have the following: ~/pset1/hello/ $ ls hello* hello.c ~/pset1/hello/ $ ./hello hello, world ~/pset1/hello/ $ check50 cs50/2018/x/hello ...
0
votes
1answer
14 views

Speller/Trie issues continued

I've almost given up. I literally cannot figure out what's the issue. I can't even debug my code for issues because this command error keeps coming up. Please, help me and be straight forward I'm ...
0
votes
1answer
50 views

Speller/Trie issue

Having a painfully hard time trying to understand all of this linked list stuff and exactly where my memory is being allocated too. This is something I never mastered in the past. I'm having a ...
0
votes
1answer
274 views

CS50 Recover compiles, but doesn't compile on check50?

on the 2019 pset 3 on CS50, my code for "Recover" is working and compiling, but when I go to check50, it fails to compile. Picture of code: https://pastebin.com/rCALvDjq Picture of error messages: ...
0
votes
1answer
51 views

CS50 Recover Issue

So far I believe my code should be operational. I thought I got it down but no matter what I change I continue to have this output that says " UndefinedBehaviorSanitizer:DEADLYSIGNAL ... ". Anyone ...
0
votes
1answer
489 views

update50: command not found in CS50 IDE

Essentially what the title states. update50 isn't being recognised as a command in my IDE. I re-tried the execution in the home directory but to no avail. Any idea what may be causing this? Thank ...