rect.cpp: In constructor 'sptable::sptable(std::vector<int>)':
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:10:18: note: in expansion of macro 'rng'
10 | #define rep(i,n) rng((i),(0),(n))
| ^~~
rect.cpp:26:3: note: in expansion of macro 'rep'
26 | rep(i,n) dat[0][i]=v[i];
| ^~~
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:27:3: note: in expansion of macro 'rng'
27 | rng(i,0,lgt[n]){
| ^~~
rect.cpp: In function 'long long int count_rectangles(std::vector<std::vector<int> >)':
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:10:18: note: in expansion of macro 'rng'
10 | #define rep(i,n) rng((i),(0),(n))
| ^~~
rect.cpp:43:3: note: in expansion of macro 'rep'
43 | rep(i,h) sph[i]=sptable(a[i]);
| ^~~
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:10:18: note: in expansion of macro 'rng'
10 | #define rep(i,n) rng((i),(0),(n))
| ^~~
rect.cpp:44:3: note: in expansion of macro 'rep'
44 | rep(j,w){
| ^~~
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:10:18: note: in expansion of macro 'rng'
10 | #define rep(i,n) rng((i),(0),(n))
| ^~~
rect.cpp:46:4: note: in expansion of macro 'rep'
46 | rep(i,h) v[i]=a[i][j];
| ^~~
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:10:18: note: in expansion of macro 'rng'
10 | #define rep(i,n) rng((i),(0),(n))
| ^~~
rect.cpp:50:3: note: in expansion of macro 'rep'
50 | rep(i,h-2)rep(j,w-2){
| ^~~
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:10:18: note: in expansion of macro 'rng'
10 | #define rep(i,n) rng((i),(0),(n))
| ^~~
rect.cpp:50:13: note: in expansion of macro 'rep'
50 | rep(i,h-2)rep(j,w-2){
| ^~~
rect.cpp:9:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
9 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
rect.cpp:53:4: note: in expansion of macro 'rng'
53 | rng(k,i+2,h){
| ^~~