leetcode执行错误
1.执行出错信息:
Line 1034: Char 34: runtime error: addition of unsigned offset to 0x603000000010 overflowed to 0x60300000000c (stl_vector.h)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/bits/stl_vector.h:1043:34
原因:数组下标出现-1等负数