The solution that got compilation error :
Both of the codes are exactly same, I'm getting compilation error in the below one and AC in the above one
I just replaced long long by int wherever possible and got an AC
Can anyone please tell what exactly is happening ?