In yesterday's div-3 (Round #756) I got WA on test 2 in problem C when I submitted it in GNU C++ 14 and now the same code gives AC when I submitted it in GNU C++ 17 (64 bit). Can anyone explain why this is happening? Link to Submission: WA Code(C++ 14) : https://codeforces.net/contest/1611/submission/136859793. AC Code(C++ 17-64 bit) : https://codeforces.net/contest/1611/submission/136967042. Both the codes are exactly same .
Remove these
`#pragma GCC optimize("Ofast,unroll-loops") #pragma GCC target("avx,avx2,fma")`
lines. It'll be accepted in GNU C++ 14 too.