You have no main() to encompass your code, and your function implementation is within where main should be.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
bool isPrime(int number); // declaration in global, outside of main
int main ()
{
primeNumber = isPrime(number);
if(primeNumber = true)
cout << "Prime Number" << endl;
return 0;
}
bool isPrime(int number) //function implementation is also outside of main (only the call is in //main)
{
.....
}
also, do you have primeNumber declared as int already? Do you have anything assigned to number?