factories.cpp: In function 'void Init(int32_t, int32_t*, int32_t*, int32_t*)':
factories.cpp:9:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rep(i, a, b) for(int (i) = (a); i <= (b); ++i)
| ^
factories.cpp:32:5: note: in expansion of macro 'rep'
32 | rep(i, 0, N - 2) {
| ^~~
factories.cpp:9:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rep(i, a, b) for(int (i) = (a); i <= (b); ++i)
| ^
factories.cpp:36:5: note: in expansion of macro 'rep'
36 | rep(i, 0, N - 1) {
| ^~~
factories.cpp: In function 'long long int Query(int32_t, int32_t*, int32_t, int32_t*)':
factories.cpp:9:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rep(i, a, b) for(int (i) = (a); i <= (b); ++i)
| ^
factories.cpp:44:5: note: in expansion of macro 'rep'
44 | rep(i, 0, T - 1) {
| ^~~
factories.cpp:9:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rep(i, a, b) for(int (i) = (a); i <= (b); ++i)
| ^
factories.cpp:61:5: note: in expansion of macro 'rep'
61 | rep(i, 0, S - 1) {
| ^~~
factories.cpp:9:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rep(i, a, b) for(int (i) = (a); i <= (b); ++i)
| ^
factories.cpp:65:5: note: in expansion of macro 'rep'
65 | rep(i, 0, n - 1) dist[i] = -1;
| ^~~