Why this code is not working in the question?

code - https://ide.codingblocks.com/s/592001

question - https://hack.codingblocks.com/app/practice/5/997/problem

Hi @dhruvilcodes I have corrected ur code https://ide.codingblocks.com/s/592021
its working fine now

1 Like

Diagnostics detected issues [cpp.clang+±diagnose]: p71.cpp:17:9: runtime error: shift exponent 35 is too large for 32-bit type ‘int’ SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior p71.cpp:17:9 in

I was getting this error with earlier solution on codeforces please explain this error.

i cant say just like this by seeing this error code… hope ur doubt for XOR-profit ques is resolved

1 Like

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.