I tried this code on multiply online compilers and it work well but when I try it on my there are problems(well not exactly errors, but it not working as expected).
The d