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 6 -1 9 not found!
Traversing the tree after assignment operator:
VE281
VE370
VE482
Max of dim 1 is VE281
Inserted VE427 with key tuple 10 -6 -2
Inserted VE498 with key tuple 8 -3 6
Min of dim 0 is VE281
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
Max of dim 2 is VE498
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
Key -2 6 3 not found!
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
Inserted VE238 with key tuple 8 4 10
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
VE238
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
VE238
Max of dim 1 is VE238
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
VE238
Traversing the tree after assignment operator:
VE281
VE370
VE427
VE498
VE482
VE238
Traversin