This is the error I'm getting and I'm not sure why it isn't working because this is how it was done in the example in the lecture. This is done using and for reference. I've looked similar questions and if the issue is that the version of sandbox needs to be updated, then how do I make the update50 run?

enter image description here enter image description here

3 Answers 3


Did you remember to

#include <cs50.h>


  • Yes it's not shown but it's there
    – Rayray94
    Commented May 1, 2020 at 23:31

I changed get_int to a printf and scanf command and fixed the problem.

enter image description here


In your original question you forgot to tell the computer what "h" on line 11 is supposed to be. To get it to behave as you intended try this:

    int h = get_int("Height: ");

Edit: I see you've declared "h" before the loop. I don't know why that triggers the error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .