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

Max of dim 1 is VE281
Inserted VE475 with key tuple 2 0 -10
Min of dim 2 is VE475
Min of dim 0 is VE281
Key 5 -10 6 not found!
Erased key 2 0 -10
Inserted VE242 with key tuple -8 9 -6
Inserted VE131 with key tuple -8 5 9
Min of dim 0 is VE131
Max of dim 2 is VE131
Min of dim 1 is VE482
Inserted VE227 with key tuple 0 -7 9
Inserted VE217 with key tuple 4 -4 10
Inserted VE232 with key tuple 4 8 -9
Max of dim 1 is VE242
Min of dim 2 is VE232
Inserted VE582 with key tuple 2 1 5
Inserted VE539 with key tuple 2 10 -3
Max of dim 2 is VE217
Inserted VE574 with key tuple -6 9 1
Value found: VE574 with key -6 9 1
Value found: VE370 with key 0 0 0
Min of dim 1 is VE227
Min of dim 2 is VE232
Inserted VE591 with key tuple 5 1 0
Value found: VE131 with key -8 5 9
Max of dim 2 is VE217
Min of dim 1 is VE227
Min of dim 2 is VE232
Max of dim 2 is VE217
Inserted VE389 with key tuple 9 3 0
Inserted VE468 with key tuple -2 -10 -8
Inserted VE288 with key tuple -6 6 6
Inserted VE111 with key tuple