TRIQUERY:giving RE

I’m getting a runtime error SIGSEGV in the problem whereas its working fine on the sample input.What could be the possible reasons I’ve already checked if the array indices are correct or not.Where am I going wrong?

large array size may be thae problem

2 Likes