Time limit

why, in cpp, when I run my program he returns me 'time limit exceeded'? and how can I solve it?

7th Dec 2016, 7:28 AM
Dolev Mashu
Dolev Mashu - avatar
3 Answers
+ 2
Maybe you have an infinite loop?
7th Dec 2016, 7:35 AM
+ 1
Yeah, a online compiler and runner has usually a time limit set. But it is enough to run usual programs. You have a bug as infinite loop in your program, or this may be a very long execution of this program, in minutes, hours. So, at first check a debug this infinitive loop. If it ok-and you need run such long program. You can instal a compiler in your computer, compile your progam and run it locally. Or you can hire some online server with compilation and running without time limit.
7th Dec 2016, 8:15 AM
Petr Hatina
Petr Hatina - avatar
no. there is an end point can I tag u so u can see?
7th Dec 2016, 7:38 AM
Dolev Mashu
Dolev Mashu - avatar