+ 2

Time limit exceeded(c++)

Is there any bypass/workaround for the time limit exceeded error in the sololearn cpp compiler??

21st Nov 2016, 9:44 AM
Remmiq Sliv
Remmiq Sliv - avatar
6 Respostas
+ 4
I just tried to run an infinite loop in C# and it worked just fine. Try it out. I guess the problem is C++ specific.
27th Nov 2016, 6:37 PM
James Flanders
+ 2
What are you trying to run?
27th Nov 2016, 5:48 PM
James Flanders
+ 2
@James Flanders, Code that compiles fine on codeblocks even other online ides. if you want an example just create a for loop that couts some sentence over a few hundred times. Larger size strings get the error sooner and endl also has an effect. Would be interesting to know why this happens.
27th Nov 2016, 6:05 PM
Remmiq Sliv
Remmiq Sliv - avatar
+ 2
It might have something to do with how the compiler handles cout because running bigger loops that perform other functions doesn't seem to throw any error. Either way not an end of the world problem, sure it'll be fixed in future versions. 👌👌
27th Nov 2016, 6:22 PM
Remmiq Sliv
Remmiq Sliv - avatar
+ 2
Still Getting the time limit exceeded error Yeah I know it's cpp specific (I specified in my question) but thanks anyway for your input @James Flanders🤘 - - interestingly enough Java also throws that error.
28th Nov 2016, 3:49 AM
Remmiq Sliv
Remmiq Sliv - avatar
+ 1
there is definitely a timeout on the progam runtime. But I am able to print a few hundred lines without a problem.
27th Nov 2016, 6:13 PM
James Flanders