HW6 (Emilijus Grasys)

This doesn't make sense. The public version of find, which you are using, returns something of type T. It won't be comparable to a boolean.

How about: "if(find(k,root) != NULL)"