Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

push_back vs emplace_back

Revision en1, by GODF, 2019-08-25 15:49:21

Hi. I have following problem. Yesterday I tried to solve this problem The same code with emplace_back does not pass the system test. However the same code with push_back passes the system test. So my question is: What is happening here ? Link to the submission with push_back Link to the submission with emplace_back


  Rev. Lang. By When Δ Comment
en1 English GODF 2019-08-25 15:49:21 509 Initial revision (published)