Questions tagged [lab1]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Getting > as the directory instead of the ~

I accidentally clicked some buttons and changed the directory to > but I'm unsure how to change it back. Please help its preventing me from moving forward. I really really appreciate it!
user avatar
  • 1
1 vote
0 answers
57 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 ...
user avatar
0 votes
1 answer
47 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 { ...
user avatar
0 votes
1 answer
54 views

population lab compiles , but wrong years

it compiles but wrong years #include <cs50.h> #include <stdio.h> int main(void) { int n,e; do { n = get_int("Start Size:"); } while (n < 9); do ...
user avatar
0 votes
1 answer
54 views

the code which is expected and my actual code are the same but check50 see it as incorrect LAB1

#include <cs50.h> #include <stdio.h> int main(void) { // TODO: prompt for the start size int n; do { n = get_int("start size: "); } ...
user avatar
1 vote
1 answer
930 views

Why is my lab1 code failing to pass one test in check50?

First, let me share my code: int main(void) { int x = 1, y, n = 0, year; do { x = get_int("Enter the starting population size: "); // TODO: Prompt for start size } ...
user avatar
0 votes
1 answer
104 views

I don't understand the comments from check50 on my lab 1 submission. could anyone help please?

This is my code #include <cs50.h> #include <stdio.h> int main(void) { // TODO: Prompt for start size int s; do { s= get_int("Start size: "); } ...
user avatar