exam.cpp: In function 'int calc(std::vector<int>)':
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:53:5: note: in expansion of macro 'ff'
53 | ff(i,0,n)cnt+=(niz[i]==b[i]?1:0);
| ^~
exam.cpp: In function 'void brutuj(std::vector<int>)':
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'l' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:62:5: note: in expansion of macro 'ff'
62 | ff(l,0,n)
| ^~
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'r' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:65:9: note: in expansion of macro 'ff'
65 | ff(r,l+1,n)
| ^~
exam.cpp:16:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
16 | #define fff(i,a,b) for (int (i) = (a); (i) <= b; (i)++)
| ^
exam.cpp:69:13: note: in expansion of macro 'fff'
69 | fff(i,l,r)novi[i]=mx;
| ^~~
exam.cpp: In function 'int dq(int, int)':
exam.cpp:18:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define bfff(i,a,b) for (int (i) = (b); (i) >= (a); (i)--)
| ^
exam.cpp:84:5: note: in expansion of macro 'bfff'
84 | bfff(i,l,r)
| ^~~~
exam.cpp: In function 'int main()':
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:97:5: note: in expansion of macro 'ff'
97 | ff(i,0,n) cin>>a[i];
| ^~
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:98:5: note: in expansion of macro 'ff'
98 | ff(i,0,n) cin>>b[i];
| ^~
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:109:9: note: in expansion of macro 'ff'
109 | ff(i,0,n)
| ^~
exam.cpp:17:29: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
17 | #define bff(i,a,b) for (int (i) = (b)-1; (i) >= (a); (i)--)
| ^
exam.cpp:113:17: note: in expansion of macro 'bff'
113 | bff(j,0,i)
| ^~~
exam.cpp:15:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
15 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
exam.cpp:118:17: note: in expansion of macro 'ff'
118 | ff(j,i+1,n)
| ^~