Record Case Detail

Notes

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

Stderr

LeakSanitizer:DEADLYSIGNAL
==34943==ERROR: LeakSanitizer: SEGV on unknown address 0x006010000000 (pc 0x5567d7ae27f3 bp 0x603000000001 sp 0x7ffea5ef3a10 T0)
==34943==The signal is caused by a READ memory access.
    #0 0x5567d7ae27f2 in Node::traverse(std::vector<int, std::allocator<int> >&) (/out/package/lab8+0x17f2)
    #1 0x5567d7ae27fb in Node::traverse(std::vector<int, std::allocator<int> >&) (/out/package/lab8+0x17fb)
    #2 0x5567d7ae27fb in Node::traverse(std::vector<int, std::allocator<int> >&) (/out/package/lab8+0x17fb)
    #3 0x5567d7ae3af0 in choice6() (/out/package/lab8+0x2af0)
    #4 0x5567d7ae2297 in main (/out/package/lab8+0x1297)
    #5 0x7f61e1d80b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x5567d7ae23d9 in _start (/out/package/lab8+0x13d9)

LeakSanitizer can not provide additional info.
SUMMARY: LeakSanitizer: SEGV (/out/package/lab8+0x17f2) in Node::traverse(std::vector<int, std::allocator<int> >&)
==34943==ABORTING

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



0
0

JOJ Answer

3
2
1 2 3 4