I am getting TLE for QTREE problem. I am using LCA and HLD in C++. Please help me. Here is the link to my code https://ideone.com/Fbh9uc . Thanks.