/ Test /

Record Case Detail

Notes

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

Stderr

AddressSanitizer:DEADLYSIGNAL
=================================================================
==58478==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051b8ab bp 0x7ffdf82275d0 sp 0x7ffdf82275c0 T0)
==58478==The signal is caused by a READ memory access.
==58478==Hint: address points to the zero page.
    #0 0x51b8aa  (/out/package/test_part1+0x51b8aa)
    #1 0x51db90  (/out/package/test_part1+0x51db90)
    #2 0x51dbd4  (/out/package/test_part1+0x51dbd4)
    #3 0x522cc4  (/out/package/test_part1+0x522cc4)
    #4 0x7fa193f32b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x41efb9  (/out/package/test_part1+0x41efb9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/out/package/test_part1+0x51b8aa) 
==58478==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 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

965 1621 -1348 -1576 -1878 1109 -166 659 -1731 424 -1723 634 -1453 -1891 -1740 -720 -921 -138 -459 565 277 752 -1872 1201 -868 -93 1545 471 -727 -36 -854 446 518 1461 1023 -194 1179 415 -1591 -1866 -339 -1167 -977 1816 -83 1027 1801 -1878 735 -1199 694 -1571 -99 -686 -494 -2000 -1899 1590 1360 1380 1858 -1866 -651 -548 1594 -102 -1655 206 -1202 -1562 1032 120 -1785 -308 1462 -1113 1797 -324 1451 216 654 -1490 962 1411 1735 1682 1234 -1753 -662 -893 1000 1303 646 -1855 -1107 1985 -426 -912 1035 1953 -1561 843 1680 -1615 1401 -1489 29 -116 -688 1317 -1309 145 711 -780 -260 -53 -1670 -1323 1250 249 -970 -1572 -1530 -215 1663 1707 -1510 -34 -1909 850 -1017 -333 315 450 -994 -1487 743 -1238 93 -1590 119 -1798 -1177 -524 21 919 -424 -492 -1376 -1645 -172 -375 -904 -690 -164 1573 -1313 101 -1128 -1509 1186 -486 1317 198 -1229 1354 195 1946 -709 -505 -1809 -1281 1809 1347 630 -1576 -430 1629 948 729 1107 1003 -132 -1566 -1349 945 1247 713 -1075 1249 -1468 -1063 -1300 1728 -1280 -1234 312 1024 -1182 370 -1540 200 1965