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

Max of dim 1 is VE281
Min of dim 2 is VE281
Traversing the tree after assignment operator:
VE281
VE370
VE482
Max of dim 0 is VE482
Key 7 -9 -5 not found when erasing!
Min of dim 1 is VE482
Traversing the tree after assignment operator:
VE281
VE370
VE482
Key 2 -6 3 not found!
Traversing the tree after assignment operator:
VE281
VE370
VE482
Key 0 6 -6 not found!
Min of dim 1 is VE482
Min of dim 1 is VE482
Key 9 4 7 not found!
Key -10 7 -1 not found when erasing!
Key 1 -4 8 not found!
Inserted VE325 with key tuple 4 -6 -6
Inserted VE328 with key tuple -1 -8 -4
Key 1 9 -1 not found!
Min of dim 0 is VE328
Key 2 7 8 not found!
Key 9 -5 -9 not found!
Min of dim 1 is VE328
Min of dim 0 is VE328
Inserted VE453 with key tuple -2 8 6
Inserted VE453 with key tuple 5 -2 -10
Min of dim 1 is VE328
Key 2 4 -8 not found when erasing!
Max of dim 2 is VE453
Min of dim 0 is VE453
Max of dim 0 is VE453
Inserted VE427 with key tuple -6 -3 -10
Key 4 5 -5 not found!
Inserted VE541 with key tuple -4 -8 -5
Traversing the tree after as