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

Value found: VE370 with key 0 0 0
Traversing the tree after assignment operator:
VE281
VE370
VE482
Traversing the tree after assignment operator:
VE281
VE370
VE482
Traversing the tree after assignment operator:
VE281
VE370
VE482
Inserted VE285 with key tuple -10 10 8
Value found: VE370 with key 0 0 0
Inserted VE214 with key tuple 10 5 4
Traversing the tree after assignment operator:
VE281
VE285
VE370
VE482
VE214
Max of dim 2 is VE285
Inserted VE376 with key tuple -1 9 7
Inserted VE494 with key tuple 1 6 6
Traversing the tree after assignment operator:
VE281
VE376
VE285
VE370
VE482
VE214
VE494
Max of dim 0 is VE214
Inserted VE279 with key tuple -10 -3 -7
Inserted VE176 with key tuple 6 -6 4
Traversing the tree after assignment operator:
VE279
VE281
VE376
VE285
VE370
VE176
VE482
VE214
VE494
Traversing the tree after assignment operator:
VE279
VE281
VE376
VE285
VE370
VE176
VE482
VE214
VE494
Traversing the tree after assignment operator:
VE279
VE281
VE376