In the recent [contest:2020] contest, I submitted my solution for [problem:2020B] in C++ 23. There, I got the wrong answer on G++ 23, but after the contest, I solved it by changing the language to G++ 17, and it got accepted. So what was the problem?↵
Should I be using G++ 17 or G++ 23?↵
What should be considered when using the built-in sqrt() function? Like precision, etc..↵
G++ 17 solution [submission:283662762]↵
G++ 23 solution [submission:283597439]
Should I be using G++ 17 or G++ 23?↵
What should be considered when using the built-in sqrt() function? Like precision, etc..↵
G++ 17 solution [submission:283662762]↵
G++ 23 solution [submission:283597439]