C++中对二维vector数组行和列的认识
问题来源于leecode中对初始二维数组vector是否为空向量的判断,避免在后面迭代向量数组造成越界(空数组不能访问)。上述问题会产生runtime error: applying non-zero offset 18446744073709551612 to null pointer(对空指针应用非零偏移量)和runtime error: reference binding to null pointer of type 'std::vector<int, std::allocator&l
原创
2020-12-08 19:03:01 ·
3590 阅读 ·
0 评论