So yesterday, at the Div 3 contest in the problem D I committed a mistake where I took the array range 10^5 instead of 2*10^5. So, when we want to access the element outside the range it should crash causing an RTE. But it gave a verdict TLE. I submitted the same code after changing the range giving me an AC so its clearly array out of bound situation. Why did this happen?
Generally array out of bounds is UB or undefined behavior. so it can lead to rte, wa, tle, etc.