+ 1

Why doesn't my code run in a longer program than a shorter one?

Wrote a code and it runs perfectly well when it's by itself, but when I copy the code exactly into a longer code, that section doesn't run the same. I'm not sure whether it's the existing code in the longer program has affected it or it ran out of memory(doesn't seem possible though). The section that went cuckoo is with the "while" loop. What could have cause the problem?

25th Jun 2018, 5:05 PM
Kenneth Gan
Kenneth Gan - avatar
3 ответов
+ 5
can we see the codes
25th Jun 2018, 5:19 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 1
Pls let us see your code so we can help
26th Jun 2018, 4:19 AM
Shahil Ahmed
Shahil Ahmed - avatar
0
Thank you for your replies This is the code, the bottom section is the one that doesn't run like I thought it would https://code.sololearn.com/c9Vh9kdQ4JQP/?ref=app
26th Jun 2018, 6:20 AM
Kenneth Gan
Kenneth Gan - avatar