joi2019_ho_t3.cpp: In function 'int main()':
joi2019_ho_t3.cpp:61:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
upmin(DP[1^l&1][a+1][b][0], ret + f(a, b, c, 0));
~^~
joi2019_ho_t3.cpp:4:21: note: in definition of macro 'upmin'
#define upmin(a,b) (a)=min((a),(b))
^
joi2019_ho_t3.cpp:61:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
upmin(DP[1^l&1][a+1][b][0], ret + f(a, b, c, 0));
~^~
joi2019_ho_t3.cpp:4:29: note: in definition of macro 'upmin'
#define upmin(a,b) (a)=min((a),(b))
^
joi2019_ho_t3.cpp:64:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
upmin(DP[1^l&1][a][b+1][1], ret + f(a, b, c, 1));
~^~
joi2019_ho_t3.cpp:4:21: note: in definition of macro 'upmin'
#define upmin(a,b) (a)=min((a),(b))
^
joi2019_ho_t3.cpp:64:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
upmin(DP[1^l&1][a][b+1][1], ret + f(a, b, c, 1));
~^~
joi2019_ho_t3.cpp:4:29: note: in definition of macro 'upmin'
#define upmin(a,b) (a)=min((a),(b))
^
joi2019_ho_t3.cpp:67:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
upmin(DP[1^l&1][a][b][2], ret + f(a, b, c, 2));
~^~
joi2019_ho_t3.cpp:4:21: note: in definition of macro 'upmin'
#define upmin(a,b) (a)=min((a),(b))
^
joi2019_ho_t3.cpp:67:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
upmin(DP[1^l&1][a][b][2], ret + f(a, b, c, 2));
~^~
joi2019_ho_t3.cpp:4:29: note: in definition of macro 'upmin'
#define upmin(a,b) (a)=min((a),(b))
^
joi2019_ho_t3.cpp:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %s", &N, str+1);
~~~~~^~~~~~~~~~~~~~~~~~~~