Different compiler version giving different outputs
source link: http://codeforces.com/blog/entry/105725
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
for this solution-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?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK