foo.cc: In function 'int main()':
foo.cc:19:29: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
19 | for(int k=i+1;k<j;k++)if(k-i&1)f[i][j]=max(f[i][j],f[i][k]+f[k+1][j]);
| ~^~
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d %d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:12:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | for(int i=1;i<=n;i++)scanf("%d %d",a+i,b+i);
| ~~~~~^~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务