race.cpp: In function 'int solve(int, int, int)':
race.cpp:27:85: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ret = fmax(ret, fmax(solve(r, nex[r][i], k^1), solve(l, nex[r][i], k)) + 1);
^
race.cpp:3:34: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:27:85: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ret = fmax(ret, fmax(solve(r, nex[r][i], k^1), solve(l, nex[r][i], k)) + 1);
^
race.cpp:3:49: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp: In function 'int main()':
race.cpp:60:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans[i] = fmax(ans[i], fmax(solve(i, nex[i][j], 0), solve(i, nex[i][j], 1)) + 1);
^
race.cpp:3:34: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:60:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans[i] = fmax(ans[i], fmax(solve(i, nex[i][j], 0), solve(i, nex[i][j], 1)) + 1);
^
race.cpp:3:49: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:79:102: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans[l] = fmax(ans[l], fmax(f2(j, i, 0) + mx[l][j][0], f2(j, i, 0) + mx[l][j][1]) + 1);
^
race.cpp:3:34: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:79:102: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans[l] = fmax(ans[l], fmax(f2(j, i, 0) + mx[l][j][0], f2(j, i, 0) + mx[l][j][1]) + 1);
^
race.cpp:3:49: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:81:102: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans[j] = fmax(ans[j], fmax(f2(l, i, 1) + mx[l][j][0], f2(l, i, 1) + mx[l][j][1]) + 1);
^
race.cpp:3:34: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:81:102: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans[j] = fmax(ans[j], fmax(f2(l, i, 1) + mx[l][j][0], f2(l, i, 1) + mx[l][j][1]) + 1);
^
race.cpp:3:49: note: in definition of macro 'fmax'
#define fmax(x,y) (x) ^ (((x) ^ (y)) & -((x) < (y)))
^
race.cpp:47:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &k);
~~~~~^~~~~~~~~~~~~~~~~
race.cpp:51:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~