Doubt in the nested loops

sir/mam, I tried to code as per the video, but the compiler is neither showing any error nor returning 0. Is it possible because I have used 5 to 6 nested loops and it has become complex?

in the psedo code sir has written bi = li+1 and bj = lj+1
that should be bi = li and bj = lj