modsum.cpp: In function 'int main()':
modsum.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define li(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
modsum.cpp:24:5: note: in expansion of macro 'li'
24 | li(i,0,n) cin>>v[i]>>w[i];
| ^~
modsum.cpp:10:28: warning: unnecessary parentheses in declaration of 's' [-Wparentheses]
10 | #define li(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
modsum.cpp:27:5: note: in expansion of macro 'li'
27 | li(s,v[0],w[0]+1) dp[0][s%5] ++;
| ^~
modsum.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define li(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
modsum.cpp:29:5: note: in expansion of macro 'li'
29 | li(i,1,n){
| ^~
modsum.cpp:10:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
10 | #define li(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
modsum.cpp:30:9: note: in expansion of macro 'li'
30 | li(k,0,5){
| ^~
modsum.cpp:10:28: warning: unnecessary parentheses in declaration of 's' [-Wparentheses]
10 | #define li(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
modsum.cpp:31:13: note: in expansion of macro 'li'
31 | li(s,v[i],w[i]+1) dp[i][k] += dp[i-1][(k-s%5+5)%5];
| ^~
modsum.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define li(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
modsum.cpp:37:5: note: in expansion of macro 'li'
37 | li(i,0,5){
| ^~