+ 13
How to solve this runtime error?
I was solving a coding competition question. I encountered this runtime error. This code gives output here but "runtime" or "wrong answer" while uploading the solution đ€Šđ»ââïž. I used hashintnext() but it doesn't work. How to solve this inorder to pass the testcases? For better explanation of the doubt : https://ide.geeksforgeeks.org/CnlU50OSYk https://code.sololearn.com/cwzt3XhB8117/?ref=app
5 Respostas
+ 17
Thanks I got my answer..
https://code.sololearn.com/cqinvQE3G6Is/?ref=app
https://code.sololearn.com/cfC0AFyeBlVk/?ref=app
But still wondering for a solution with while loop and postfix as -- operater ..
But Minho made that to clear!
Thanks everyone :)
+ 16
Yes but I wanted with -- operator đ
Thanks a lot C-MOON ,Minho đ°đ· I appreciate your help ))
+ 15
Ooh my badđ€Šđ»ââïž thanks
+ 14
Ahh that's true but the program needs it..by my understanding ? it may be a case I go wrong..but idkđ€·ââïž
http://arena.siesgst.ac.in/contest/NOV20/problem/NOV20C
Please see this question
+ 6
You have forgotten decrement the h -= 1;
Besides I did small changes for clear coding:
https://code.sololearn.com/cLmAeW1Nf1Cj/?ref=app