Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

free(): double free detected in tcache 2

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

Min of dim 0 is VE281
Min of dim 2 is VE281
Key 5 -10 -7 not found!
Key -9 -8 -1 not found when erasing!
Key 3 -8 1 not found when erasing!

JOJ Answer

Min of dim 0 is VE281
Min of dim 2 is VE281
Key 5 -10 -7 not found!
Key -9 -8 -1 not found when erasing!
Key 3 -8 1 not found when erasing!
Traversing the tree after assignment operator:
VE281
VE370
VE482
Key 8 5 -2 not found!
Key 1 4 -3 not found when erasing!
Max of dim 1 is VE281
Inserted VE395 with key tuple 7 3 -2
Key 5 5 5 not found!
Min of dim 2 is VE395
Inserted VE597 with key tuple 2 4 -10
Max of dim 2 is VE482
Key 5 1 -4 not found!
Inserted VE304 with key tuple -10 -6 6
Min of dim 1 is VE304
Key -3 -2 -8 not found!
Max of dim 0 is VE395
Inserted VE357 with key tuple -7 6 -9
Max of dim 0 is VE395
Max of dim 0 is VE395
Inserted VE394 with key tuple -4 4 -8
Key 2 2 -4 not found!
Traversing the tree after assignment operator:
VE304
VE281
VE357
VE394
VE370
VE482
VE597
VE395
Inserted VE387 with key tuple 7 -1 5
Key -2 -6 -3 not found when erasing!
Min of dim 1 is VE304
Traversing the tree after assignment operator:
VE304
VE281
VE357
VE394
VE370
VE482
VE597
VE395
VE387
Max of dim 2 is VE304
Max of dim 2 is