clo.cpp: In function 'int main()':
clo.cpp:25:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
25 | memset(f[i&1^1],0xaf,sizeof(f[i&1^1]));
| ~^~
clo.cpp:25:34: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
25 | memset(f[i&1^1],0xaf,sizeof(f[i&1^1]));
| ~^~
clo.cpp:27:29: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
27 | if(j+v[i+1]>=0) chmax(f[i&1^1][j+v[i+1]],f[i&1][j]+w[i+1]);
| ~^~
clo.cpp:28:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
28 | chmax(f[i&1^1][j],f[i&1][j]);
| ~^~
clo.cpp:11:16: warning: unused variable 'p' [-Wunused-variable]
11 | int n,m,i,j,k,p,u;
| ^