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 VE112 with key tuple 0 -8 -10
Inserted VE135 with key tuple 6 -9 -3
Inserted VE216 with key tuple -3 4 -1
Inserted VE175 with key tuple 3 8 1
Inserted VE442 with key tuple -10 1 -2
Inserted VE305 with key tuple -6 -5 8
Inserted VE216 with key tuple -4 10 6
Inserted VE240 with key tuple -1 3 10
Max of dim 0 is VE135
Inserted VE379 with key tuple -7 -4 7
Inserted VE222 with key tuple -10 7 -1
Inserted VE479 with key tuple -2 -2 4
Inserted VE102 with key tuple 10 2 -6
Inserted VE396 with key tuple -4 7 -7
Key 5 -8 7 not found!
Value found: VE305 with key -6 -5 8
Inserted VE371 with key tuple -1 -8 1
Inserted VE444 with key tuple 4 4 -9
Max of dim 1 is VE216
Erased key 0 -8 -10
Value found: VE442 with key -10 1 -2
Traversing the tree after assignment operator:
VE442
VE379
VE305
VE371
VE479
VE281
VE396
VE216
VE222
VE216
VE240
VE370
VE135
VE482
VE444
VE102
VE175
Inserted VE185 with key tuple 2 4 5
Inserted VE410 with key tuple 3 -10 10
Inserted VE191 with key tuple