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 1 is VE482
Inserted VE366 with key tuple -5 -8 -6
Key -3 6 -9 not found!
Key -8 3 -3 not found!
Key -2 -3 8 not found!
Traversing the tree after assignment operator:
VE366
VE281
VE370
VE482
Max of dim 1 is VE281
Key 6 -5 1 not found when erasing!
Traversing the tree after assignment operator:
VE366
VE281
VE370
VE482
Inserted VE328 with key tuple 6 -7 -2
Traversing the tree after assignment operator:
VE366
VE281
VE370
VE328
VE482
Key 1 4 2 not found!
Max of dim 2 is VE482
Key -3 9 -9 not found!
Key -8 -6 1 not found!
Key 6 2 -5 not found!
Inserted VE330 with key tuple -7 2 7
Min of dim 0 is VE330
Traversing the tree after assignment operator:
VE366
VE281
VE330
VE370
VE328
VE482
Key -10 -6 -10 not found!
Key 2 -1 -4 not found!
Key 3 -8 1 not found!
Min of dim 1 is VE366
Inserted VE464 with key tuple -2 -3 2
Key -2 1 7 not found!
Key 0 4 1 not found when erasing!
Key 4 8 5 not found!
Inserted VE287 with key tuple 0 -10 -5
Key -1 -2 -10 not found when erasing!
Inserted VE468 with key tuple 1 -2 -2
Inse

JOJ Answer

Min of dim 1 is VE482
Inserted VE366 with key tuple -5 -8 -6
Key -3 6 -9 not found!
Key -8 3 -3 not found!
Key -2 -3 8 not found!
Traversing the tree after assignment operator:
VE366
VE281
VE370
VE482
Max of dim 1 is VE281
Key 6 -5 1 not found when erasing!
Traversing the tree after assignment operator:
VE366
VE281
VE370
VE482
Inserted VE328 with key tuple 6 -7 -2
Traversing the tree after assignment operator:
VE366
VE281
VE370
VE328
VE482
Key 1 4 2 not found!
Max of dim 2 is VE482
Key -3 9 -9 not found!
Key -8 -6 1 not found!
Key 6 2 -5 not found!
Inserted VE330 with key tuple -7 2 7
Min of dim 0 is VE330
Traversing the tree after assignment operator:
VE366
VE281
VE330
VE370
VE328
VE482
Key -10 -6 -10 not found!
Key 2 -1 -4 not found!
Key 3 -8 1 not found!
Min of dim 1 is VE366
Inserted VE464 with key tuple -2 -3 2
Key -2 1 7 not found!
Key 0 4 1 not found when erasing!
Key 4 8 5 not found!
Inserted VE287 with key tuple 0 -10 -5
Key -1 -2 -10 not found when erasing!
Inserted VE468 with key tuple 1 -2 -2
Inse