Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==39540==ERROR: AddressSanitizer: stack-overflow on address 0x7fff317e21a0 (pc 0x00000051b880 bp 0x7fff638f8c30 sp 0x7fff317e2100 T0) #0 0x51b87f (/out/package/ex3+0x51b87f) #1 0x51adea (/out/package/ex3+0x51adea) #2 0x7f66d2ca0b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41e1d9 (/out/package/ex3+0x41e1d9) SUMMARY: AddressSanitizer: stack-overflow (/out/package/ex3+0x51b87f) ==39540==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
145 -7 36 48 124 -2 90 -128 -10 6413 1913 6219 -1869 10045 -2215 -3762 3290 -7046 6858 5872 6090 -562 3348 -3658 -1916 -12879 -794