+ 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
7 Respuestas
+ 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 :)
+ 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