Coding Blocks IDE

Task: to find largest bst in binary tree
it is not giving the correct output.
CAN SOMEONE HELP!!