Skip to main content

Questions tagged [lab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
407 views

Lab 6 World-Cup | Timed out issue

Check50 says, and I qoute, "timed out while waiting for program to exit" in some of the criterias, I don't understand what infinite loop is causing this. Can you help? # Simulate a sports ...
Berra Eylül Toprak's user avatar
0 votes
1 answer
22 views

Scrabble lab: question about functionality of arrays

after being stuck on the Scrabble problem for a while (mostly because I'm quite confused about arrays), I looked at section of the solution. However I'm quite confused still with this section of the ...
Murphy_D's user avatar
0 votes
0 answers
9 views

I found the bug! Now how do have it so it does not respond "Hello, name from location"?

#include <cs50.h> #include <stdio.h> int main(void) { // Ask for your name and where live string answer = get_string ("What is your name? "); string answer = get_string ("...
Joan McGrath's user avatar
0 votes
2 answers
1k views

Trouble with Lab 4 smiley

I've written the following code to change the colour of the smiley face, and thought I finally understood what to do. However even though there are no compilation errors it doesn't change the colour ...
user3169426's user avatar
0 votes
1 answer
792 views

comparison between pointer and integer ('const char' and 'char')

I'm not familiar with C, not sure what this error means.. could anyone help? #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to ...
matt.mcg's user avatar
  • 101
0 votes
1 answer
466 views

Week 2 Lab Scrabble

I am working on the scrabble lab and I am unsure of where I have gone wrong in my code. #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points ...
Connie's user avatar
  • 107
0 votes
1 answer
156 views

Lab 2 Compute Score

So, I am trying to convert every letter of the word to lowercase but it isn't working. Here is my code: int compute_score(string word) { // TODO: Compute and return score for string for (int i ...
TSPR 810's user avatar
1 vote
2 answers
2k views

Segmentation Fault on Inheritance, Lab 5

I tried lab4 but I was having issues so I watched Brian's solution walkthrough. The code compiles and all goes well but when I run the program it shows a segmentation fault. debug50 shows a segfault ...
ehsansth's user avatar
0 votes
1 answer
545 views

lab 5 // issue when freeing family memory

Hi I have an issue with freeing the family memory in my code: when I run my code the issue seems to be from the free memory for the parents section but I am not sure what's wrong void free_family(...
Arsham's user avatar
  • 27
0 votes
2 answers
236 views

I cannot get the color of the button to change

<html lang="en"> <head> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap" rel="stylesheet"> ...
Drey''s user avatar
  • 7