Incorrect runtime error

I am getting runtime error in some of my codes in practice although my runtime is less than the time limit of given question.

Somebody help.

I think you are getting confused between run-time error and time-limit exceeded.

Run-time error usually occurs when you are accessing out of bound elements in an array.

1 Like

I think you have by mistake taken run-“time” error to be related to execution time.
Runtime errors are errors which are encountered when the program “runs”. I.e. your code looks correct to a compiler but does something its not supposed to; like access an out of bounds element of an array, or trying to dereference a pointer which points into unallocated memory, etc.