+ 4
What is time limit out ?????? I get irrated with this ad it occurs alternatively after running every programe???????
problem......
2 Antworten
+ 18
SoloLearn's online compiler stops running your code if it takes too long to finish executing. This is so the server isn't taken up by someone's code running an infinite loop or doing ridiculously long calculations.
Your most recent code has an infinite loop. In your while, the variable i is always less than 4. Either change the condition so the while can end, or increment i instead of decrementing.
+ 4
If your program is taking too long, it'll time out on SoloLearn. So next question, why? Because if they didn't put a time limit on it, one of us idiots would create a bunch of programs that overload their servers, which would trickle down and effect everyone that enjoys this website.
Simply put, it's a necessary mechanism when you're allowing the public to create, compile, and run code from your server.