/in/foo.cc: In function 'int main()':
/in/foo.cc:61:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,r1)
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:62:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(j,1,r2)
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:67:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,shl(1,N)-1) {
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:71:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,shl(1,M)-1) {
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:75:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) dp[i][j] = 1000000;
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:75:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) dp[i][j] = 1000000;
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:76:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) if (sumA[i] == sumB[j])
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:76:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) if (sumA[i] == sumB[j])
^
/in/foo.cc:13:39: note: in definition of macro 'For'
#define For(i,a,b) for (int i = a;i = b;--i)
^
/in/foo.cc:68:8: warning: array subscript is below array bounds [-Warray-bounds]
sumA[i] = 0;
~~~~~~^
/in/foo.cc:69:50: warning: array subscript is below array bounds [-Warray-bounds]
rep(j,N) if ((shl(1,j) & i) != 0) sumA[i] += A[j];
^
/in/foo.cc:69:44: warning: array subscript is below array bounds [-Warray-bounds]
rep(j,N) if ((shl(1,j) & i) != 0) sumA[i] += A[j];
~~~~~~~~^~~~~~~
/in/foo.cc:72:8: warning: array subscript is below array bounds [-Warray-bounds]
sumB[i] = 0;
~~~~~~^
/in/foo.cc:73:50: warning: array subscript is below array bounds [-Warray-bounds]
rep(j,M) if ((shl(1,j) & i) != 0) sumB[i] += B[j];
^
/in/foo.cc:73:44: warning: array subscript is below array bounds [-Warray-bounds]
rep(j,M) if ((shl(1,j) & i) != 0) sumB[i] += B[j];
~~~~~~~~^~~~~~~