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 VE571 with key tuple 6 10 -1
Key 3 -2 5 not found!
Inserted VE190 with key tuple -6 7 4
Inserted VE436 with key tuple -6 4 5
Key -3 8 -6 not found when erasing!
Erased key -1 2 0
Inserted VE493 with key tuple 2 1 5
Min of dim 1 is VE482
Key -5 0 0 not found!
Inserted VE347 with key tuple 6 -3 -4
Inserted VE294 with key tuple -10 9 0
Inserted VE185 with key tuple 3 10 -2
Inserted VE243 with key tuple -7 4 4
Value found: VE493 with key 2 1 5
Min of dim 1 is VE347
Inserted VE421 with key tuple 10 -2 7
Min of dim 1 is VE347
Inserted VE122 with key tuple -5 -3 5
Key -5 -9 9 not found!
Max of dim 2 is VE421
Inserted VE543 with key tuple 4 8 9
Min of dim 2 is VE347
Inserted VE318 with key tuple 4 -10 -7
Erased key 4 -10 -7
Inserted VE471 with key tuple 0 -6 0
Inserted VE248 with key tuple -7 -3 8
Max of dim 1 is VE571
Max of dim 2 is VE543
Inserted VE207 with key tuple -10 -3 1
Inserted VE161 with key tuple -9 6 4
Max of dim 2 is VE543
Inserted VE423 with key tuple 3 -5 0
Ins