Largest bst in bt

https://ide.codingblocks.com/s/58776 please tell me what wrong in this code…

@LPL010015 bhaiya debug the code

The values should be compared for root and INT_MAX in case of lower value and value of root and INT_MIN for higher value .
https://ide.codingblocks.com/s/59136

The sample test is giving correct output but the actual test cases are not.
https://ide.codingblocks.com/s/59976
Please help