/in/foo.cc: In function 'double cal(ll, ll)':
/in/foo.cc:35:17: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
return (dp[r&1^1][k]-(sum[k]*sum[k])-dp[r&1^1][j]+(sum[j]*sum[j]))*1.0/(sum[j]-sum[k]);
~^~
/in/foo.cc:35:46: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
return (dp[r&1^1][k]-(sum[k]*sum[k])-dp[r&1^1][j]+(sum[j]*sum[j]))*1.0/(sum[j]-sum[k]);
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:57:28: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp[r&1][i]=dp[r&1^1][q[h]]+sum[q[h]]*(sum[i]-sum[q[h]]);
~^~