skittles.c:6:1: error: expected identifier or '('
{
^
this is my error and this is my uncleaned up code
#include <stdio.h>
#include <cs50.h>
int main(void);
{
int tries = (0);
int total = rand() % 1024;
{
printf("guess a number between 1 and 1023\n");
int num = GetInt();
loop:
}
while (num < total)
{
printf("%d is to low\n", num);
num = GetInt();
tries++;
goto loop;
}
while (num > total)
{
printf("%d is to high\n", num);
num = GetInt();
tries++;
goto loop;
}
while (num == total)
{
printf("%d is perfect\n", num);
printf("it took you %d tries", tries);
}
}