ФУНКЦИЯ ПОИСКА КОЛ-ВА УЗЛОВ С ОДИНАКОВЫМИ ЗНАЧЕНИЯМИ void search (node *&t, int x)
{if (t==0){t=new node;
t->key=x;
t->cout=1;
t->left=0;
t->right=0;
}
else
if(x>t->key)
search (t->right, x)
else
if(x<t->key)search(t->left, x)
else t->cout++;
}
node *buildPoisk (int n)
{int i,x; node *t=0;
for (i=0; i<n; i++)
{cout<<"\n Vvedite ocherednoe n \n";
cin>>x;
search (t,x);
}
return t;
}