Unknown error (Not so esay math question)

the error is:

  • /bin/run.sh: line 4: 18 Arithmetic exception (core dumped) ./exe

on local machine, it is giving run-time error.

tried, but unable to find bug.

In line 50 you have done i<<j instead of 1<<j

made some corrections, but ans is wrong

made some corrections, but ans is wrong , https://ide.codingblocks.com/s/230711

Can you send me the question link. I’ll submit your code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.