Structurally _Identical (Binary Tree)

It is giving runtime error.
I think I’m not taking the inputs correctly. please help me correcting buildTree() function
Link-https://ide.codingblocks.com/s/101712

@sayedwajahatullah1234 hey sayed your buildtree function is not right.
try out with this
node * buidtree(string s){
if(s== " true "){
int d;
cin>>d;
node*root=new node(d);
string l;
cin>>l;
if(l==“true”){
root->left=buildtree(l);
}
string r;
cin>>r;
if(r==“true”){
root->right=buildtree ( r );
}
return root;
}
return NULL;
}
pass true in this function while calling from main function.