What's wrong with my solution?

Heyy there,

Problem : FLOW001 Problem - CodeChef
Solution : CodeChef: Practical coding for everyone

Thanks for checking out, could you please tell me where did i went wrong
I’m clueless here :expressionless:

Pay attention to compiler warnings :slight_smile:

adi7ya-FLOW001.cpp: In function β€˜int main()’:
adi7ya-FLOW001.cpp:17:12: warning: β€˜n’ is used uninitialized in this function [-Wuninitialized]
     while(n!=0){
           ~^~~
4 Likes

You forgot to take input β€œn”

ahh, i see
my bad, thanks

2 Likes

:sweat_smile: thanks for pointing out

1 Like