RadRah's blog

By RadRah, history, 2 years ago, In English

How do you feel after two hours of debugging and finding this bug? commend it :)

Screenshot-from-2022-11-27-16-55-32

Screenshot-from-2022-11-27-16-56-34

Screenshot-from-2022-11-27-16-58-23

  • Vote: I like it
  • +48
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
  Vote: I like it +8 Vote: I do not like it

:(

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I once kept getting ,for a Binary search on answer problem, Memory limit exceeded on TEST 7 for days. And it only needed to comment #define int long long XD!

»
2 years ago, # |
  Vote: I like it -10 Vote: I do not like it

I don't feel anything cuz I don't do these silly mistakes.

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I hope i will never encounter this

  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I even commented all define of my code for find the problem XD

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it

It happens! I remember spending a whole day on single bug, but it's worth!

  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Exactly! If you find such bugs once, you will not make this mistake again Everything is experience!

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it
2e5 + 1
»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Is it UB?

And you can compile with Clang++17 Diagnostics.