Record Case Detail

Notes

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

Stderr

AddressSanitizer:DEADLYSIGNAL
=================================================================
==35912==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd0a08e580 (pc 0x00000051b880 bp 0x7ffd3c1a5010 sp 0x7ffd0a08e4e0 T0)
    #0 0x51b87f  (/out/package/ex3+0x51b87f)
    #1 0x51adea  (/out/package/ex3+0x51adea)
    #2 0x7fe32aa66b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41e1d9  (/out/package/ex3+0x41e1d9)

SUMMARY: AddressSanitizer: stack-overflow (/out/package/ex3+0x51b87f) 
==35912==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

-22 -56 -5 109 
83 -99 -147 -22 
40 41 64 -152 
108 -28 -43 88 

-605 2545 -836 12923 
-6513 5984 -2097 16071 
-2020 -786 -4401 -10905 
-3120 514 4131 3499 

1242 -6117 -8779 7534 
2603 -4400 11054 -10322 
176 1501 -925 2712 
-4122 5306 -6368 8560