I'm trying to use the following in a program, but seem to be getting an error. Any ideas why?

Code:
bool greater (int a, int b)
{
     if (a > b)
        return true;
}