Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==34964==ERROR: LeakSanitizer: detected memory leaks Direct leak of 248 byte(s) in 10 object(s) allocated from: #0 0x7fab368a7d8b in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xfd8b) #1 0x561be404a554 in Node::Node(int, int) (/out/package/lab8+0x1554) Direct leak of 32 byte(s) in 1 object(s) allocated from: #0 0x7fab368a7d8b in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xfd8b) #1 0x561be404a554 in Node::Node(int, int) (/out/package/lab8+0x1554) #2 0x7fab00000002 (<unknown module>) SUMMARY: LeakSanitizer: 280 byte(s) leaked in 11 allocation(s).
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 23, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
1 3 2
JOJ Answer
1 3 2