错误提示:
LeetCode进行案例测试运行时提示如下错误:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
原因解析:
输入测试案例时格式不符合要求,比如有多余的空格等
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid