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

Inserted VE341 with key tuple -8 6 6
Key -6 -9 2 not found!
Inserted VE473 with key tuple -7 8 -2
Inserted VE499 with key tuple 3 4 -9
Inserted VE561 with key tuple 2 1 -8
Inserted VE369 with key tuple 1 -7 -3

JOJ Answer

Inserted VE341 with key tuple -8 6 6
Key -6 -9 2 not found!
Inserted VE473 with key tuple -7 8 -2
Inserted VE499 with key tuple 3 4 -9
Inserted VE561 with key tuple 2 1 -8
Inserted VE369 with key tuple 1 -7 -3
Traversing the tree after assignment operator:
VE281
VE473
VE341
VE370
VE369
VE482
VE499
VE561
Key 5 -8 -8 not found when erasing!
Max of dim 1 is VE473
Max of dim 2 is VE341
Key -5 -10 3 not found!
Key -10 -4 3 not found!
Min of dim 2 is VE499
Key -1 -10 -1 not found!
Key 9 6 -9 not found!
Traversing the tree after assignment operator:
VE281
VE473
VE341
VE370
VE369
VE482
VE499
VE561
Key 4 7 8 not found!
Min of dim 2 is VE499
Key 3 -1 4 not found!
Inserted VE502 with key tuple -4 9 5
Inserted VE364 with key tuple 5 7 -5
Max of dim 0 is VE364
Inserted VE430 with key tuple -8 -4 5
Max of dim 1 is VE502
Max of dim 2 is VE341
Key 8 -8 -7 not found!
Traversing the tree after assignment operator:
VE430
VE281
VE473
VE502
VE341
VE370
VE369
VE482
VE499
VE561
VE364
Key -6 -3 -7 not found when erasing!
Inserted VE