+ 1

I have learned C, C++ and java but I have some difficulty in outputting any programme how can I solve this problem?

14th Nov 2018, 12:34 AM
Nadeem Muzaffar Anjum
Nadeem Muzaffar Anjum - avatar
5 odpowiedzi
+ 2
Here in SoloLearn long loops are aborted since the program runs in a virtual environment that gives only a small time frame to execute the code else giving a time limit exceeded error. Only JavaScript can run longer or infinite loops since it runs in a WebView. Unfortunately there is no way to avoid it so if you don't use JS you are limited to just few iterations
14th Nov 2018, 12:43 AM
michezio
michezio - avatar
+ 1
What kind of difficulty?
14th Nov 2018, 12:37 AM
michezio
michezio - avatar
+ 1
That's why my program doesn't work https://code.sololearn.com/cer1a9mTPGZ8/?ref=app
14th Nov 2018, 12:45 AM
Nadeem Muzaffar Anjum
Nadeem Muzaffar Anjum - avatar
0
In loops i cant find how many times it runs
14th Nov 2018, 12:37 AM
Nadeem Muzaffar Anjum
Nadeem Muzaffar Anjum - avatar
0
Exactly, there are many loops with many iteration each. There is no way you can run this in SoloLearn unless you can refactor your code to have the minimum amount of loops possible
14th Nov 2018, 12:51 AM
michezio
michezio - avatar