i received some help but when i implimented it into the program it came up with an error. if anyone could help me fix this problem i will greatly appreciate it. here is the program. it is a guessing game. the error message says:

error C2064: term does not evaluate to a function taking 1 arguments. it is talking about the following line: srand((unsigned)time(0))

```
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main ()
{
int num;
int guess;
bool done;
int noOfGuesses=0;
int ncount;
int sum=0;
int noofgamesplayed;
int avgNoOfGuesses;
int time;
sum += noOfGuesses;
avgNoOfGuesses=sum/noofgamesplayed;
srand((unsigned)time(0))
;num = (rand() % 1000);
done = false;
while ((noOfGuesses < 10) && (!done))
{
cout << "Enter an integer greater"
<< " than or equal to 0 and "
<< "less than 1000: ";
cin >> guess;
cout << endl;
noOfGuesses++;
if (guess == num)
{
cout << "you guessed the correct "
<< "number." << endl;
done = true;
}
else
if (guess < num)
cout << "Your guess is lower "
<< "than the number. \n"
<< "Guess again!" << endl;
else
cout << "Your guess is higher "
<< "than the number.\n"
<< "guess again!" << endl;
cout <<"Total gueses equal " << noOfGuesses << endl;
}
return 0;
}
```