Devc++出现[Error] ld returned 1 exit status,不知如何解决,请大佬教我一下

图片说明
[Error] ld returned 1 exit status
我是一个小白,刚学C语言,大佬救命哇,感谢!

max函数没有定义
在int main()上面加上

int max(int a, int b)
{
return a > b ? a : b;
}

问题解决的话,请点下采纳