Why do my c++ codes output nothing but occasionally outputs correctly? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why do my c++ codes output nothing but occasionally outputs correctly?

I’m a beginner in c++ coding and coding in general and just learnt the basics. When running the code, I get the response of “no output”. I check the code for any mistakes and don’t find any so I run the command again and it outputs what I wanted in the first place without changing anything with the code. This is rather annoying at times as on occasions the code does not output correctly several times. This has really slowed down my learning of c++ coding. Send help and tips in how to solve this problem. Thanks. https://code.sololearn.com/clF5t58tk4h9/?ref=app

31st Dec 2018, 1:25 AM
Edward Tu
Edward Tu - avatar
1 Answer
+ 2
There is nothing wrong with your code. It's most likely your Internet connection. Keep retrying and it should work. If your using mobile data try to find a better spot, for better signal. If your using WiFi from your house's WiFi router try to place it to the central of your house as much as possible. I'm also a beginner in C++, but don't let things like this stop you ok :).
31st Dec 2018, 1:58 AM
Pirate_Programmer
Pirate_Programmer - avatar