Below I have a bool function (I do not use bool functions a lot) that is supposed to have an error in it, but I do not understand what it is. I have experimented with the function, but I'm not sure what "return true" is supposed to look like. I have also assigned it "return false" and the output looks the same. So my question is: What is wrong with this function?
Thank you for your time.
1 2 3 4
bool Greater (int a, int b){
if (a > b)
returntrue;
}