Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

my program is saying run time exceed why

+14 votes
asked Feb 17 by Yanique S Grant (220 points)

2 Answers

+2 votes
answered Feb 18 by Peter Minarik (101,420 points)
There is probably a timer on the server side to prevent hanging programs to hog resources indefinitely.

If you haven't written something that's supposed to run for a long time, then you indeed may have ended up in an endless loop. Try adding log messages and find out where your code hangs.

If you intended to write something that runs for a long time, you can try to put something on the standard output to see if that resets the timer and allows your code to run longer.

If you can share your code, please do, so we can give you a more specific answer.
0 votes
answered Mar 27 by mie leen thie (140 points)
You received a TLE (Time Out Deadline) because your code ran too slowly, exceeding the program's execution time limit. If you're in an exam, you should adjust your code to remove unnecessary elements.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...