Strange behavior of GNU C++ 17

Revision en1, by pertifiedcobra, 2021-11-02 10:42:14

1. WA Submission

2. AC Submission

The only difference between the two submissions is the cout<<"", which is there in the AC Submission and not there in WA Submission. Can someone please help me understand why printing an empty string gives a different answer than when not printing print it?

Thank you!

Tags gnu c++ 17, bug, c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English pertifiedcobra 2021-11-02 10:42:14 616 Initial revision (published)