dear guys i can't catch my problem which show my "function returns nothing" in codeforce i tried hard but can't understand ..please anyone give me this solution why returns nothing ..i am a beginner programmer .. THANKS IN ADVANCE https://codeforces.com/contest/706/submission/80536755
What if the function exits the
while
loop? Put areturn 0;
statement after thewhile(l<=r)
loop.