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 4 -6 8 not found!
Key -10 -9 -5 not found when erasing!
Inserted VE407 with key tuple -10 4 -1
Min of dim 1 is VE482
Key -2 -4 0 not found!
Traversing the tree after assignment operator:
VE281
VE407
VE370
VE482
Max of dim 2 is VE482
Max of dim 2 is VE482
Max of dim 1 is VE407
Key -2 9 8 not found!
Inserted VE548 with key tuple 3 2 -2
Key -3 -4 7 not found!
Max of dim 2 is VE482
Inserted VE486 with key tuple -5 -4 -6
Inserted VE395 with key tuple 3 -6 7
Max of dim 0 is VE548
Min of dim 1 is VE395
Key -3 -8 7 not found!
Inserted VE494 with key tuple 9 -5 1
Inserted VE451 with key tuple -5 -1 -7
Inserted VE366 with key tuple -1 9 -8
Inserted VE447 with key tuple 3 8 -2
Min of dim 2 is VE366
Inserted VE295 with key tuple -2 2 2
Max of dim 2 is VE395
Key -5 6 6 not found when erasing!
Min of dim 2 is VE366
Inserted VE446 with key tuple 2 -9 -8
Key -8 -10 -8 not found!
Key 9 5 -8 not found!
Traversing the tree after assignment operator:
VE451
VE486
VE281
VE366
VE407
VE295
VE370
VE446
VE494
VE395
VE482
VE548
VE4