0

what is time limit? in the output

#include <iostream> using namespace std; int main () { int num = 1; while (num < 1000) { cout <<"Number: " << num << endl; num = num + 1; } return 0; } when I run this code it displays in the output number upto 323 and then the time limit exceeded. can someone explain that??

1st Jan 2018, 8:06 AM
sohaib
sohaib - avatar
2 Answers
+ 5
SoloLearn provides a limited amount of cpu time before stopping your program from running on their server.
1st Jan 2018, 8:09 AM
John Wells
John Wells - avatar