poj1330 RMQ LCA runtimeError