Can someone find the magic?

Revision en1, by Sazzon, 2017-08-04 03:54:57

Hello,

on today's Educational Round I came across a problem that made me a bit sad..

On the problem Two Seals I submitted this code.

As you can see, on the third input it fails. But when I run this code on my machine with the following CLI

g++ -o [object] [code.cpp] -std=c++11 -Wfatal-errors

It returns me the correct answer for this test case. Can someone help me figure out what am I missing on CLI or compiler option here on codefoces (So I can prevent myself from doing it again) ?

It really made me sad, what if it was a rated round ? My dreams would have been crushed.

Thank you for your time.

PS: I'm using GNU C++14 here on codeforces.

Tags educational round, two seals

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Sazzon 2017-08-04 03:54:57 808 Initial revision (published)