0

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

0

Did you remember to

#include <cs50.h>

?

| improve this answer | |
  • Yes it's not shown but it's there – Rayray94 May 1 at 23:31
0

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

enter image description here

| improve this answer | |
0

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.

| improve this answer | |

You must log in to answer this question.

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