Different outputs in versions of C++
I was doing this brute force problem, when I submitted my Code in GNU C++14 it gives WA whereas same code gets AC in GNU C++ ?
CF Edu Round 166 Solution Discussion
Codeforces Round 949 Solution Discussion