foo.c: In function 'main':
foo.c:22:15: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
22 | dp[i][j]=max(dp[i][j],dp[i-1][j]+dp[i][j-1]);
| ^~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d%d",&n,&m);
| ^~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccLidaSv.o: in function `main':
foo.c:(.text.startup+0xa7): undefined reference to `max'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务