So I was solving 1370C - Number Game yesterday and I was able to figure out the conditions for this question after some paperwork but when I implemented my answer it kept on showing wrong answer when I was using GNU C++17 compiler and frustrated after 3 hours I finally gave up and checked the editorial and realized that what I was doing was in fact correct.
What's more while doing this question compiler on my laptop and another online IDE were giving right answers but the solution was wrong according to Codeforces. So after that I tried changing the compiler to GNU C++ 14 because the IDE and my laptop both were using that compiler and to my surprise my answer actually got accepted.
Now since I'm new to all this and I really don't know the differences between GNU C++14 and GNU C++17 so can someone help me and point out what's wrong in my answer because of which it won't work on GNU C++17. This is solution for the question 93378850 This got accepted with GNU C++14 but failed for GNU C++17 you can check that yourselves.
Any help will be appreciated!