please help to fint where the error is in this code i want the function to display the bigger number among the one there in the program
#include <iostream>
using namespace std;
int max(int a,intb)
{
int a=100;
int b=200;
int ret;
ret= max(a,b);
return ret;
}
int main()
{
int result;
if(a>b)
result=a;
{
cout<<"The answer is"<< result<<endl;
}
else
result=b;
{
cout<<"The answer is"<< result <<endl;
return 0;
}
}
Please, read the compiler error messages and try to update your program yourself. I think that the compiler already pointed out undeclared identifier intb