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

Правка en3, от cuom1999, 2018-03-10 09:56:10

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 is 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!

Теги c++ 11, c++ 14

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский cuom1999 2018-03-10 09:56:30 5 Tiny change: ' AC. Here is my codes:' -> ' AC. Here are my codes:'
en3 Английский cuom1999 2018-03-10 09:56:10 8 Tiny change: '6116440] (AC)\n\nI h' -> '6116440] (verdict AC)\n\nI h'
en2 Английский 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 Английский cuom1999 2018-03-10 09:54:04 510 Initial revision (published)