### Aiub_heros's blog

By Aiub_heros, history, 6 weeks ago,

• -4

 » 6 weeks ago, # |   0 Even to ask for help, you have to use an alt account??
•  » » 6 weeks ago, # ^ |   0 Real account brother
 » 6 weeks ago, # | ← Rev. 2 →   0 there is a bug in line $41$.in while condition, write == instead of =.there might be some other bugs too,for example,what your program prints for test case : 3 9?
 » 6 weeks ago, # | ← Rev. 2 →   +7 wrong part of your code: wrong onewhile( smallest[ j ] = '0') { j++; smallest[ 0 ]++; smallest[ j ]--; } Corrected onewhile( smallest[ j ] == '0') { j++; } smallest[ 0 ]++; smallest[ j ]--;I think u mistakenly did last two operation inside loop :)I found one more mistake so Adding accepted solution of your code: Acceped code