Блог пользователя Bnahmad15

Автор Bnahmad15, история, 8 лет назад, По-английски

Hi guys I had a problem here I was solving a problem and I am writing my solution on ideone.com when I tried it on ideone it gives me 2 and when I submit here it gives me 1 ??? what is this plz help me :D :D

  • Проголосовать: нравится
  • -14
  • Проголосовать: не нравится

»
8 лет назад, # |
Rev. 2   Проголосовать: нравится +5 Проголосовать: не нравится

you are probably doing something that gives undefined behaviour for example you don't give an integer a value in a function and you use the integer so every time you use the integer you have a random value in it sometimes it might affect you answer sometimes it doesn't.

P.S there are other things that can cause undefined behaviour.