We changed our privacy policy. Read more.

Questions tagged [lab1]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
27 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 ...
0
votes
0answers
15 views

Lab1 - unsure about potential rounding issues

I had an issue with the second exercise of lab 1, where the number of years for a llama population to grow is calculated. The below code worked fine, but when I went about the calculation of years ...
0
votes
0answers
18 views

Week 1 Lab, population, in the area of the calculation of years required to reach threshold i need any help please

#include <cs50.h> #include <stdio.h> int main(void) { int counter = 0; int popinc; int e; // TODO: Prompt for start size int s; do { s = get_int("Start pop: ")...
0
votes
1answer
33 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
1answer
48 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 ...
0
votes
1answer
41 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: "); } ...
0
votes
1answer
546 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 } ...
0
votes
1answer
92 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: "); } ...