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?
3 Answers
Did you remember to
#include <cs50.h>
?
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.