Please give me the error log for RE in problem TAQTREE

How I can fix with the error like RE? Codechef not give me the Error log :(. I have generate test but still can not find the error. Here my solution

//