+ 1
What is "time limit exceeded" output after compilation of code??
I made a program of stack operations in C language but when I run it, it says time limit exceeded.. Every time I run it same output appears..I commented some lines to check whether it was due to length of code but no it was not an issue bcoz even after commenting, output remains same..Please can somebody tell me the reason..
9 Antworten
+ 1
It usually occurs with online compilers and linkers.
As only a specific time period is provided by the server to compile your code , in case the code is too long to compile (200+ lines) then the server may not be able to run the compiler on time and the process may be preempted to serve some other incoming request...
Use an inbuilt compiler instead.
0
Maybe that issues is related about Memory Heap. I ever met that issues an hour ago. When i made this
https://code.sololearn.com/cL6a29Bjp1XS/?ref=app
0
~ swim ~
Yes, there is an infinite loop but it has return statements according to requirements inside it..So I thought it will break the loop...My net is slow, so it will take a bit to share the code..
0
Here's my code
https://code.sololearn.com/cu4aLMz09gw5/?ref=app
0
~ swim ~
Sorry I didn't understood..can you please explain reason in simple way as I am new to programming..