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

Inserted VE571 with key tuple -8 1 5
Inserted VE387 with key tuple 6 -2 -8
Key 7 7 -7 not found when erasing!
Inserted VE325 with key tuple 2 9 4
Key -8 4 8 not found!
Max of dim 0 is VE387
Key 9 3 9 not found!
Key 6 1 -8 not found!
Inserted VE492 with key tuple 5 1 -7
Min of dim 2 is VE387
Inserted VE525 with key tuple -8 -4 4
Traversing the tree after assignment operator:
VE525
VE571
VE281
VE370
VE387
VE482
VE492
VE325
Inserted VE490 with key tuple 3 -8 -4
Inserted VE299 with key tuple -1 9 9
Max of dim 2 is VE299
Max of dim 1 is VE325
Inserted VE562 with key tuple 2 -4 8
Inserted VE447 with key tuple -2 -7 9
Key 1 -8 0 not found when erasing!
Inserted VE499 with key tuple 9 9 2
Max of dim 0 is VE499
Inserted VE387 with key tuple 9 7 -5
Key 0 0 -5 not found!
Traversing the tree after assignment operator:
VE525
VE571
VE447
VE281
VE299
VE370
VE387
VE562
VE490
VE482
VE492
VE387
VE499
VE325
Key 9 1 -4 not found!
Key 1 9 -2 not found when erasing!
Key -1 9 6 not found!
Inserted VE326 with key tuple -1 3 -3
Key -