rowords.cpp: In function 'int main()':
rowords.cpp:11:31: warning: operation on 'tt' may be undefined [-Wsequence-point]
11 | #define sub(a, b) ((a-b>a)? (a-=b, 1) : (a-=b, 0))
......
29 | mc = sub(tt, mc) + sub(tt, t);
| ~~~~~~
rowords.cpp:29:22: note: in expansion of macro 'sub'
29 | mc = sub(tt, mc) + sub(tt, t);
| ^~~
rowords.cpp:39:70: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
39 | for (int i=m-1; i>=0; --i) if (A[k] == B[i]) { set_bit(d, m-1-i); break; }
| ~~~^~
rowords.cpp:9:28: note: in definition of macro 'set_bit'
9 | #define set_bit(bs, i) (bs[i>>6] |= 1llu << (i&63))
| ^
rowords.cpp:39:70: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
39 | for (int i=m-1; i>=0; --i) if (A[k] == B[i]) { set_bit(d, m-1-i); break; }
| ~~~^~
rowords.cpp:9:46: note: in definition of macro 'set_bit'
9 | #define set_bit(bs, i) (bs[i>>6] |= 1llu << (i&63))
| ^
rowords.cpp:11:31: warning: operation on 'tt' may be undefined [-Wsequence-point]
11 | #define sub(a, b) ((a-b>a)? (a-=b, 1) : (a-=b, 0))
......
47 | mc = sub(tt, mc) + sub(tt, t);
| ~~~~~~
rowords.cpp:47:22: note: in expansion of macro 'sub'
47 | mc = sub(tt, mc) + sub(tt, t);
| ^~~
rowords.cpp:52:57: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
52 | for (int i=m-1; i>=0; --i) ret += get_bit(d, m-1-i);
| ~~~^~
rowords.cpp:10:29: note: in definition of macro 'get_bit'
10 | #define get_bit(bs, i) ((bs[i>>6] >> (i&63))&1)
| ^
rowords.cpp:52:57: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
52 | for (int i=m-1; i>=0; --i) ret += get_bit(d, m-1-i);
| ~~~^~
rowords.cpp:10:39: note: in definition of macro 'get_bit'
10 | #define get_bit(bs, i) ((bs[i>>6] >> (i&63))&1)
| ^