Error in maybe my class implementation

this is my code for Range Xor ( coded with reference to editorial provided) i am facing this error which says
request for member ‘insert’ in ‘t’, which is of non-class type ‘int’
131 | t.insert(x,n-q);
and same for max_xor function. please help me know the problem.

Hey @dhruvprashar don’t make a separate class for node, you can make left and right node in your trienode class only.
Logic you have applied is right, just an implementation issue which you can correct it. See this code for implementation purpose

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.