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 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:81:5: note: in expansion of macro 'ff'
81 | 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:82:5: note: in expansion of macro 'ff'
82 | 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:93:9: note: in expansion of macro 'ff'
93 | 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:97:17: note: in expansion of macro 'bff'
97 | 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:102:17: note: in expansion of macro 'ff'
102 | ff(j,i+1,n)
| ^~
exam.cpp:17:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define bff(i,a,b) for (int (i) = (b)-1; (i) >= (a); (i)--)
| ^
exam.cpp:116:9: note: in expansion of macro 'bff'
116 | bff(i,0,n)
| ^~~
exam.cpp:18:30: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
18 | #define bfff(i,a,b) for (int (i) = (b); (i) >= (a); (i)--)
| ^
exam.cpp:120:13: note: in expansion of macro 'bfff'
120 | bfff(j,0,i)
| ^~~~