1.leetcode只要写类,后台自动添加头文件和主函数。

2.control may reach end of non-void function [-Werror,-Wreturn-type]

产生错误的原因:在某些情况下,函数没有响应的返回。