gift.cpp: In function 'int construct(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
gift.cpp:5:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
gift.cpp:13:5: note: in expansion of macro 'rep'
13 | rep(i, r){
| ^~~
gift.cpp:5:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
gift.cpp:20:5: note: in expansion of macro 'rep'
20 | rep(i, n){
| ^~~
gift.cpp:5:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
gift.cpp:25:9: note: in expansion of macro 'rep'
25 | rep(j, q1[i].size()){
| ^~~
gift.cpp:5:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
gift.cpp:25:9: note: in expansion of macro 'rep'
25 | rep(j, q1[i].size()){
| ^~~
gift.cpp:6:31: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
6 | #define repi(i, a, b) for(int (i)=(a); (i)<(b); (i)++)
| ^
gift.cpp:26:13: note: in expansion of macro 'repi'
26 | repi(k, d+1, q1[i][j]+1){
| ^~~~
gift.cpp:5:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
gift.cpp:34:5: note: in expansion of macro 'rep'
34 | rep(i, n) sum[i+1] = sum[i] + S[i];
| ^~~
gift.cpp:5:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
gift.cpp:36:5: note: in expansion of macro 'rep'
36 | rep(i, r){
| ^~~
gift.cpp:5:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
5 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
gift.cpp:44:5: note: in expansion of macro 'rep'
44 | rep(i, n){
| ^~~