Different output after submitting

Правка en2, от Midsid, 2025-03-19 15:50:10

For test case x = 0 and y = 0 the answer should be 0 and when I run it on my compiler the output is 0 but when I submitted the code, the checker showed 2 as output. https://codeforces.net/contest/2075/submission/311384533

edit : There was undefined behavior in this code because I passed 0 to __builtinclz .Thanks for helping.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Midsid 2025-03-19 15:50:10 109
en1 Английский Midsid 2025-03-19 13:35:04 257 Initial revision (published)