please check once the whole codeand tell whats wrong in my code
Test case 0 and 2 are not passing (working fine for leading carry on dev c++ but not on CB ide)
Hi @J20APPPP0006, u are not initializing your flag value with 0 due to which it takes a garbage value.
in dev c++ local variables are initialized with 0 automatically that;s why you are getting correct ansswer there
Here, i have corrected your code : - https://ide.codingblocks.com/s/212942
In case of any doubt feel free to ask 