Istream not working

while running >> operator in same code , the compiler says that “return is” is not valid as it is deleted, what is the issue I can’t resolve

//operator overloading with cascading
ostream& operator<<(ostream &os,node*head){
print(head);
return os;
}

istream operator>>(istream &is,node*&head){
head=take_input2();

//issue in next line
return is;
}

hello @argus

u need to return reference.

make istream& as ur return type of operator >> function