Code:
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main();
{
int gok;
int randgetal;
cout<<"Guess the number i have in mind\n";
srand((unsigned)time(0));
randgetal = rand()
cin >> gok;
cin.ignore();
if (gok > randgetal);
{
cout<<"Lower!\n";
}
if (gok < randgetal);
{
cout<<"Higher!\n";
}
if (gok == randgetal);
{
cout<<"well done\n";
}
else ()
{
return main();
}
}
the error messages are
8 expected unqualified-id before '{' token
8 expected `,' or `;' before '{' token
im new to this and i really cant see why it wont work, any advice would be greatly appreciated