candies.cpp: In function 'int main()':
candies.cpp:15:46: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
15 | int x=(i+1)%3,y=(i+2)%3,z=i%3,l=1,r=i+2>>1,mid;
| ~^~
candies.cpp:17:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
17 | if(dp[z][i+2>>1]>dp[y][i>>1]+a[i]){
| ~^~
candies.cpp:18:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
18 | rep(j,1,i+4>>1) dp[x][j]=dp[z][j];
| ~^~
candies.cpp:5:44: note: in definition of macro 'rep'
5 | #define rep(i,b,a) for(int i=(b); i<((int)(a)); i++)
| ^
candies.cpp:22:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
22 | mid=l+r>>1;
| ~^~
candies.cpp:27:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
27 | rep(j,l,i+4>>1) dp[x][j]=dp[y][j-1]+a[i];
| ~^~
candies.cpp:5:44: note: in definition of macro 'rep'
5 | #define rep(i,b,a) for(int i=(b); i<((int)(a)); i++)
| ^
candies.cpp:29:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
29 | rep(i,1,n+3>>1) cout << dp[n%3][i] << "\n";
| ~^~
candies.cpp:5:44: note: in definition of macro 'rep'
5 | #define rep(i,b,a) for(int i=(b); i<((int)(a)); i++)
| ^