https://ide.codingblocks.com/s/38620
https://hack.codingblocks.com/contests/c/512/1226
please correct the errors in code
Cb scholarship _-----------------------------
Your code sometimes goes in infinite loop when s becomes equal to e, and thus it does not give any output for test case like
5 10 2 1
Your code is not correct logically for many cases. There are various corner cases in this question. Try to think about them. Read the question again carefully and attempt it again.