What is "time limit exceeded" output after compilation of code?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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..

20th Jul 2019, 6:33 PM
Alaska
Alaska - avatar
5 Answers
+ 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.
14th Aug 2019, 2:59 AM
Grizzly Gunner
Grizzly Gunner - avatar
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
20th Jul 2019, 6:35 PM
Dwi Novianto Nugroho
Dwi Novianto Nugroho - avatar
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..
20th Jul 2019, 6:41 PM
Alaska
Alaska - avatar
20th Jul 2019, 6:48 PM
Alaska
Alaska - avatar
0
~ swim ~ Sorry I didn't understood..can you please explain reason in simple way as I am new to programming..
20th Jul 2019, 6:50 PM
Alaska
Alaska - avatar