Run Time Error with C++14, but AC with C++11

Revision en4, by cuom1999, 2018-03-10 09:56:30

I submitted two same codes for problem 949C - Data Center Maintenance. Initially, I chose Lang GNU C++14 but got RTE. After a while, I tried my luck, chose GNU C++11 and miraculously, got AC. Here are my codes:

Code with GNU C++14 : 36116002 (verdict RTE)

Code with GNU C++11 : 36116440 (verdict AC)

I have not found anything to explain it and I'm afraid that these things may happen during some future contests. Can you suggest any reasons? Thank you!

Tags c++ 11, c++ 14

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English cuom1999 2018-03-10 09:56:30 5 Tiny change: ' AC. Here is my codes:' -> ' AC. Here are my codes:'
en3 English cuom1999 2018-03-10 09:56:10 8 Tiny change: '6116440] (AC)\n\nI h' -> '6116440] (verdict AC)\n\nI h'
en2 English cuom1999 2018-03-10 09:55:20 0 Tiny change: 'U C++11 : [submission:36116440] (AC)\n\nI' -> 'U C++11 : (AC)\n\nI'
en1 English cuom1999 2018-03-10 09:54:04 510 Initial revision (published)