foo.cc: In function 'int main()':
foo.cc:23:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
23 | dp[i][j]=max(dp[i][j],dp[i-1][j]+dp[i][j-1]);
| ^~~
| std::max
In file included from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: 'std::max' declared here
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务