0

Hey people! There is some error with the codes that I write. Can anyone explain?

compilation error is being shown for the codes newly written. https://code.sololearn.com/cZ61B0q8wiFz/?ref=app

14th Oct 2017, 7:33 AM
Kirti
Kirti - avatar
5 Answers
+ 2
sorry about this, @Gordie. inserted it now and thanks for the answer
14th Oct 2017, 8:31 AM
Kirti
Kirti - avatar
0
I'm not entirely sure what's wrong with the code, but since there is no output, I can tell that the code gets stuck in the while loop. In this case, make sure n returns 0 in the while loop or it will loop forever
14th Oct 2017, 1:48 PM
ReimarPB
ReimarPB - avatar
0
@ReimarPB, I wrote endl but forgot to pay attention to this auto-correct which always changed it end. And so the error...but now I corrected it. Thanks for the reply
14th Oct 2017, 2:47 PM
Kirti
Kirti - avatar