Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Different output on ideone and devc++

$
0
0

For the problem CHEFBM I wrote this program ... It seems to run fine on devc++ and gives the expected output 3 3 -1 4 but on ideone, it gives the output -1 -1 -1 -1

If I write a statement on line 52cout<<""; which basically shouldn't have any effect, the output changes to the expected 3 3 -1 4... link here

Can someone please point out what is happening?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>