编译错误 error: control may reach end of non-void function
编译错误:您提交的代码无法完成编译第1行6:1: error: control may reach end of non-void function [-Werror,-Wreturn-type]}^1 error generated.产生错误的原因:在某些情况下,函数没有响应的返回。int max(int a, int b){if(a>=b) return