Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==39541==ERROR: AddressSanitizer: stack-overflow on address 0x7fff1ffa60e0 (pc 0x00000051b880 bp 0x7fff520bcb70 sp 0x7fff1ffa6040 T0) #0 0x51b87f (/out/package/ex3+0x51b87f) #1 0x51adea (/out/package/ex3+0x51adea) #2 0x7f27659f4b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41e1d9 (/out/package/ex3+0x41e1d9) SUMMARY: AddressSanitizer: stack-overflow (/out/package/ex3+0x51b87f) ==39541==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
13 51 2 -103 0 -136 97 77 -1 49 -83 41 -15 -49 22 -62 14 -24 -57 -60 136 32 -40 137 -161 -812 -1558 805 1461 -405 -14080 -8472 644 -178 1225 -499 11094 -5556 10125 455 -4760 -8335 1917 6374 3354 2840 -6597 4053 -15699 -2972 2651 3972 -755 -433 -18331 2282 -3600 3237 720 5220 6266 5093 -3397 609 8159 36 7570 -1309 -2567 -8483 -1517 -12966 7351 1874 -4525