Please read the new rule regarding the restriction on the use of AI tools. ×

abnormal unordered_map behaviour

Revision en2, by rating_Infi, 2019-01-04 22:16:36

Can someone help me why unordered_map is failing in Problem C?

Failed in test case 4 with GNU C++17 submission

Failed in test case 5 with GNU C++14 submission

Passed with Clang++17 Diagnostics submission

Finally passed by changing unordered_map to map submission

I wasted 1hr debugging this during the contest!!

Tags unordered_map

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English rating_Infi 2019-01-04 22:26:09 17 Tiny change: 'ed_map is failing in [Probl' -> 'ed_map is out of control in [Probl'
en2 English rating_Infi 2019-01-04 22:16:36 48 Tiny change: '44716)\n\n' -> '44716)\n\nI wasted 1hr debugging this during the contest!!'
en1 English rating_Infi 2019-01-04 22:15:10 596 Initial revision (published)