Notes
This function is in beta test. Please help improve it in the issues
here.
/in/ex1.h:13:20: runtime error: index 126 out of bounds for type 'int [100]' /in/ex1.h:13:22: runtime error: store to address 0x7ffc831e3368 with insufficient space for an object of type 'int' 0x7ffc831e3368: note: pointer points here fc 7f 00 00 ce 48 28 cf 88 55 00 00 80 33 1e 83 fc 7f 00 00 b0 e5 49 cf 88 55 00 00 b3 8a b5 41 ^ ================================================================= ==26101==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc831e330c at pc 0x5588cf283e8c bp 0x7ffc831e3110 sp 0x7ffc831e3100 WRITE of size 4 at 0x7ffc831e330c thread T0 ASAN:DEADLYSIGNAL AddressSanitizer: nested bug in the same thread, 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
packard