+ 2
Time limit exceeded(c++)
Is there any bypass/workaround for the time limit exceeded error in the sololearn cpp compiler??
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.
+ 2
What are you trying to run?
+ 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.
+ 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. 👌👌
+ 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.
+ 1
there is definitely a timeout on the progam runtime. But I am able to print a few hundred lines without a problem.