Armstrong numbers

CODE:
https://ide.codingblocks.com/#/s/13718
QUESTION:
https://hack.codingblocks.com/contests/c/474/185
PROBLEM:
NO OUTPUT IN ALL CASES.

‘flag’ needs to be initialized as zero each time after fixing a no.(to determine whether it is armstrong or not) in outer loop.

i am having a similar problem would you please take a look.
here’s the link to it-Print armstrong numbers
thanks.