You have to put ; behind the struct declaration:
struct tnode
{
int data;
struct tnode * left;
struct tnode * right;
}; // <-- here
You have to put ; behind the struct declaration:
struct tnode
{
int data;
struct tnode * left;
struct tnode * right;
}; // <-- here