/in/foo.cc: In function 'int dp(int)':
/in/foo.cc:11:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
f[i&1][2][1]=max(f[i&1^1][1][0],f[i&1^1][0][0])+a[i][2];
~^~
/in/foo.cc:11:38: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
f[i&1][2][1]=max(f[i&1^1][1][0],f[i&1^1][0][0])+a[i][2];
~^~
/in/foo.cc:12:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
f[i&1][1][1]=f[i&1^1][0][0]+a[i][1];
~^~
/in/foo.cc:13:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
f[i&1][1][0]=f[i&1^1][2][1]+a[i][1];
~^~
/in/foo.cc:14:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
f[i&1][0][0]=max(f[i&1^1][1][1],f[i&1^1][2][1])+a[i][0];
~^~
/in/foo.cc:14:38: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
f[i&1][0][0]=max(f[i&1^1][1][1],f[i&1^1][2][1])+a[i][0];
~^~
/in/foo.cc:7:10: warning: unused variable 'k' [-Wunused-variable]
int i,j,k;
^