#include <stdio.h>
#include <cs50.h>
int main(void)
int h;
{
do
{
printf("Height: ");
int h = GetInt();
}
while (h < 1 || h > 23);
}
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow mario.c -lcs50 -lm -o mario mario.c:7:1: error: expected identifier or '(' { ^ 1 error generated.
error: expected ';' after top level declarator int main(void)
^
;
This error appears when I attempt to run it. I know there isn't suppose to be a semicolon after int main(void), but when it wasn't there it prompted me to add one. I have looked at similar posts and tried to use the solutions that were given to them but it did not work. If anyone can help me it would be very much appreciated. Thank you in advance!
`**}