Leetcode第415题,数组越界问题

数组越界了,就检查下数组的所赋的值对不对

一直找不到,怀疑人生,对着题解写的代码怎么会错了,一直报

Line 1065: Char 9: runtime error: addition of unsigned offset to 0x7fff6bfcbd40 overflowed to 0x7fff6bfcbd3f (basic_string.h)SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/basic_string.h:1074:9

后来,终于发现两个数组num1[i],num2[j]都写成了i。