标签: c++ pointers null runtime
我在Leetcode中练习了Problem #198 House Robber的C ++编码,下面是我写的代码
Problem #198
但它显示
Runtime error: reference binding to the null pointer of type 'value_type'
当我尝试提交解决方案时。我一次又一次检查代码,但仍无法找到原因。有人能帮我解决这个问题吗?