struct state {
int M_count;
int C_count;
bool boat;
}
int hn (struct state st){
struct state temp;
temp = st;
int tot = temp.M_count + temp.C_count;
int hr = 2*tot - 3;
return hr;
}
its giving error
new types may not be defined in a return type
what is the problem with my function?Please reply!