Different compiler version giving different outputs
Difference between en1 and en2, changed 0 character(s)
for this solution-[submission:167359184]↵
When i am running this code in my own personal computer it is giving me right output (compiler version g++ 11) while in codeforces it is giving the wrong or different output why is that?↵
for ex-↵
1↵
7↵
gives ↵
1 0 2 6 5 4 3 ↵
on my personal ide ↵
but it gives ↵
6 5 4 3 2 1 0↵
on c++ 14.↵
I just want to know the reason this is happening?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English idonthatephy 2022-08-07 21:50:58 0 (published)
en1 English idonthatephy 2022-08-07 11:00:58 432 Initial revision (saved to drafts)