Ok,I forgot to make lazy[node]=0,but after fixing that,I'm getting WA..and I even tried using memset instead of the calling build function,setting the whole seg and lazy array values to 0,but still got WA,so the code still has bug somewhere else,please help to find it 