C++14 is 2x slower than C++11 (not related to I/O)

Revision en1, by Giada, 2017-08-04 13:26:42

I encountered the following issue with C++14. It seems that it is much slower than C++ and C++11. Here the same code submitted with C++, C++11, C++14.

The issue is not related to I/O (so cin/cout slowness addressed here is not involved), since the program has only to read 2 integers and write 1 integer. Moreover the code doesn't use any exotic structure or library, but only vectors.

What is the cause of this issue? Is it a known problem of the compiler?

Tags codeforces, c++, cpp, c++14, c++11 vs c++14, g++14

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Giada 2017-08-04 13:26:42 852 Initial revision (published)