Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is -6, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

Key 2 -1 10 not found when erasing!
Key 5 1 9 not found when erasing!
Key 6 1 7 not found when erasing!
Inserted VE303 with key tuple -5 -9 -9
Inserted VE525 with key tuple 9 -5 7
Erased key 9 -5 7
Inserted VE392 with key tuple -3 5 -5
Erased key -1 2 0
Min of dim 1 is VE303
Key -9 10 2 not found when erasing!
Key -3 1 2 not found when erasing!
Key -4 9 10 not found when erasing!
Erased key -3 5 -5
Inserted VE309 with key tuple 4 10 -8
Key -9 -4 10 not found when erasing!
Erased key 4 10 -8
Inserted VE291 with key tuple -2 3 5
Inserted VE156 with key tuple -1 -7 -8
Inserted VE417 with key tuple -2 -1 7
Value found: VE417 with key -2 -1 7
Erased key 0 0 0
Key 0 6 0 not found!
Key -7 10 10 not found when erasing!
Key 9 -8 2 not found when erasing!
Inserted VE597 with key tuple 1 -7 5
Inserted VE361 with key tuple -4 -1 5
Min of dim 2 is VE303
Erased key -5 -9 -9
Inserted VE136 with key tuple -5 -8 4
Max of dim 0 is VE482
Key 0 8 1 not found when erasing!
Max of dim 1 is VE291
Ins