MikeMirzayanov's blog

By MikeMirzayanov, history, 3 weeks ago, In English,

Hello,

Do you remember my post New: Diagnostics of Solutions in C++? If not, please read it.

Recently, I've implemented better UI to show you diagnostics. Now in on the status pages sometimes you can notice something like this:

Click to the  and you'll see the code with the highlighted problematic line and description with the possible reason of the mistake.

Do you like it?

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

»
3 weeks ago, # |
  Vote: I like it +70 Vote: I do not like it

It's great!

»
3 weeks ago, # |
  Vote: I like it +33 Vote: I do not like it

fantastic!

»
3 weeks ago, # |
Rev. 2   Vote: I like it +15 Vote: I do not like it

Thanks MikeMirzayanov for the efforts put into improving codeforces!

»
3 weeks ago, # |
  Vote: I like it +225 Vote: I do not like it

Cool thing. I just hope that people won't rely just on this. Remember that you can catch silly mistakes yourself with good compilation flags. You will find mistakes faster and you can use it during the contest too, while CF diagnostics are only for practice (right?).

»
3 weeks ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Thanks!!!!!

But can we see this feature during contests?

/// upd: sorry for repeating comment.

»
3 weeks ago, # |
  Vote: I like it +10 Vote: I do not like it

Awesome

»
3 weeks ago, # |
Rev. 2   Vote: I like it -81 Vote: I do not like it

Maybe in future we will see smth like: "please stop doing this task, author's solution is not reliable"

»
3 weeks ago, # |
  Vote: I like it +19 Vote: I do not like it

A great addition to the existing system. Kudos!

»
3 weeks ago, # |
  Vote: I like it +31 Vote: I do not like it

How to turn this off? It makes me feel so stupid when I see "potential out of bounds error on line X"............. qwq. I would rather find it myself.

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it +162 Vote: I do not like it

    What about coding in notepad and submitting without compiling first? Stupid compiler telling you there's a missing semicolon. :>

    • »
      »
      »
      3 weeks ago, # ^ |
      Rev. 2   Vote: I like it +28 Vote: I do not like it

      Yup, the testing system is clearly suitable for testing.

      (bad translation from a local Russian meme)

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it +7 Vote: I do not like it

    If you don't click the icon, the tips wouldn't show. So, it actually is a switch.

»
3 weeks ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Sir ,is this feature only works for GNU c++17 ?

»
3 weeks ago, # |
  Vote: I like it +36 Vote: I do not like it

It must be disabled on contests.

  • »
    »
    3 weeks ago, # ^ |
    Rev. 2   Vote: I like it +21 Vote: I do not like it

    of course it will

    otherwise it will create more problems

»
3 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

It's awesome!!!. Great work Sir

»
3 weeks ago, # |
  Vote: I like it +3 Vote: I do not like it

Cool! & Thanks!

I think contests would be more challenging if this feature is disabled for contestants!

»
3 weeks ago, # |
Rev. 2   Vote: I like it +2 Vote: I do not like it

Is this going to be enabled on pretests during contests?

If not, how do I setup these diagnostics on my own system? I see usually that the diagnostics reported on Codeforces are from VS 2017 — is it possible to setup this on Linux? If not, how do I do it on Windows?

»
3 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

that is great and fantastic efforts

I am curious about its implementation and its limitations

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Great

»
3 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

It's really convenient to correct the error.

»
3 weeks ago, # |
  Vote: I like it +12 Vote: I do not like it

In fact,this is a good tool.But if people are depend on this without debug by themselves,that will be bad

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

awesome!!

»
3 weeks ago, # |
  Vote: I like it +43 Vote: I do not like it

Can we choose to turn this off for practice?

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Can't you just not click to the  ?

    • »
      »
      »
      3 weeks ago, # ^ |
        Vote: I like it +22 Vote: I do not like it

      It gives a slight hint as to where your solution went wrong, even if you just see it and don't click on it. I would still like to find out that my solution has some sort of undefined behavior by myself instead of being told.

    • »
      »
      »
      3 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      It can make easy for me to believe that my logic is correct and implementation has something wrong. But I don't want that when doing the practice. I want to figure out myself what exactly is wrong, the logic or the code.

»
3 weeks ago, # |
  Vote: I like it +20 Vote: I do not like it

please add an option to turn it off :(

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

I like it

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks a lot sir. It really helps a lot!!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

darshandev.chauhan It will help you in fast Practise

»
3 weeks ago, # |
Rev. 3   Vote: I like it +5 Vote: I do not like it

Deleted. I 'm sorry for my unnecessary comment.

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

I see cooperation with JetBrains was quite productive.

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Very helpful features.Nice work!!!!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

nice!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

This will be great for quick reference without debugging a lot ^__^

»
3 weeks ago, # |
  Vote: I like it +3 Vote: I do not like it

All we asked for a way to access large testcases for which our code fails! Just kidding, This UI will definitely help a lot! :)

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Very good!!!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Good job , nice work ❤

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Wow! Fantastic!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Great job!!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

It's very great ,and it will be better to see this feature in contests it will help us find the mistake fast .

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Nice!!!!

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Very nice Improvement

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

It’s so good

»
3 weeks ago, # |
  Vote: I like it +10 Vote: I do not like it

One of the reasons why codeforces is the best platform to practice and master competitive programming. Keep up the good work !

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

wow! It's really helpful.Thankyou codeforces.

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

ok, I still think we need a way to turn this off, because when I submit some wrong solution to cf for practice it literally is stuck for like 2 minutes running the diagnostic and it is annoying to not know if it is just a judging system hold up or the diagnostic

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

What about show participiant's place in result table after contest completed in every page.

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

So great!We can save a lot of time debugging!