My code gives run time error during run time

Kindly rectify my code -https://ide.codingblocks.com/s/211101

Nishit… pls edit inRange function in your code as :

void print_in_range(node* root ,int a ,int b)
{
if(root==NULL)
{
return;
}
if(adata)
{
print_in_range(root->left,a,b);
}

     if(a<=root->data && b>=root->data)
	{
        cout<<root->data<<" ";
             }

	if(b>root->data)        
	{
     print_in_range(root->right,a,b);
	}
     
}