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 VE315 with key tuple -3 6 10
Inserted VE127 with key tuple 5 5 0
Inserted VE590 with key tuple 7 -6 -7
Inserted VE189 with key tuple 3 10 1
Inserted VE590 with key tuple 9 -10 -6
Inserted VE310 with key tuple -5 7 -4
Min of dim 0 is VE310
Inserted VE195 with key tuple -2 5 -9
Inserted VE438 with key tuple -10 -8 8
Key 6 4 -6 not found when erasing!
Inserted VE150 with key tuple -10 8 -9
Erased key -5 7 -4
Max of dim 1 is VE189
Inserted VE320 with key tuple -10 -4 -8
Inserted VE565 with key tuple -3 1 -7
Max of dim 0 is VE590
Key -5 3 4 not found!
Max of dim 1 is VE189
Min of dim 1 is VE590
Inserted VE595 with key tuple 4 6 2
Key -5 -1 7 not found when erasing!
Inserted VE331 with key tuple 8 3 -2
Inserted VE593 with key tuple 7 -5 -5
Inserted VE290 with key tuple 1 -1 4
Inserted VE585 with key tuple 9 -8 5
Inserted VE480 with key tuple 1 -8 1
Key 7 6 4 not found when erasing!
Inserted VE552 with key tuple 9 9 -6
Min of dim 0 is VE438
Min of dim 1 is VE590
Key 9 1 -4 not