error: initializer for lambda capture 'paths' contains multiple expressions
报错代码:
if(root->right)[
paths(root->right,path,result);
path.pop_back();
]
错因:括号
error:runtime error: applying non-zero offset 1844674407370955
error:heap-buffer-overflow
错因:数组越界
error: no matching function for call to 'stoi'
报错代码:
int digit=stoi(digits[start]);//将char传给stoi做参数
error: non-const lvalue reference to type 'int' cannot bind to a temporary of type 'int'
报错代码:
backtracing(0,target,0,candidates);
^
错因:
参见博客:https://blog.csdn.net/xylitolz/article/details/122759220
runtime error: reference binding to null pointer of type 'int' (stl_vector.h)
错因:vector数组没有分配大小
terminate called after throwing an instance of 'std::invalid_argument' what(): stoi
错因:没有判空!!