+ 3

Is it the way the SoloLearn c++ compiler is configured or why does this code run differently on CppDroid?

It is very confusing when entering more then one number into the SoloLearn compiler. Is there any way to make it run similar to CppDroid? Check out this code and let me know if there is a solution. https://code.sololearn.com/ceZi2rhHqdg1/?ref=app

14th Sep 2017, 10:18 PM
Bob
Bob - avatar
6 Answers
+ 9
I assume so. They would need a different one for each language so it is a good bet that the answer to that is yes.
14th Sep 2017, 10:36 PM
jay
jay - avatar
+ 13
Loops don't work well with user input on Code Playground. :<
15th Sep 2017, 10:14 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
It is the way the compiler works on Sololearn. The compiler is located on their servers not on your device as cppDroid is. When you press Run, the code is sent to sololearns servers and compiled there. This is why it exhibits this behaviour. It is also why we have time limits for compiled languages. This affects all compiled languages.
14th Sep 2017, 10:24 PM
jay
jay - avatar
+ 3
Awesome Thanks! Is the server based compiler an attempt to keep the SoloLearn app size smaller or what?
14th Sep 2017, 10:34 PM
Bob
Bob - avatar
+ 2
A server based compiler explains a lot of the questions I had about why the code was executed the way it was. I also understand the reason for trying to keep the app as small as possible, but surely there are more people out there like me who would not care how much memory SoloLearn used. Would it be possible to download an add-on compiler? That way we could choose which language and not have to download all the compilers if we didn't want to. Or would that cause other performance issues?
15th Sep 2017, 4:22 PM
Bob
Bob - avatar
+ 2
@Lord Kristna Awesome! Thanks for the suggestions. I will try them.
15th Sep 2017, 6:32 PM
Bob
Bob - avatar