foo.cc:29:11: error: redefinition of 'const int maxn'
29 | const int maxn = 2010;
| ^~~~
foo.cc:5:11: note: 'const int maxn' previously defined here
5 | const int maxn = 2010;
| ^~~~
foo.cc:30:5: error: redefinition of 'int dp [2010][2010]'
30 | int dp[maxn][maxn];
| ^~
foo.cc:6:5: note: 'int dp [2010][2010]' previously declared here
6 | int dp[maxn][maxn];
| ^~
foo.cc:32:5: error: redefinition of 'int main()'
32 | int main() {
| ^~~~
foo.cc:8:5: note: 'int main()' previously defined here
8 | int main() {
| ^~~~
[Hydro](https://hydro.ac)提供评测服务