exam.cpp: In function 'long long int pass(long long int, long long int)':
exam.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:39:5: note: in expansion of macro '_foreq'
39 | _foreq(i, l, r) mx = max(mx, a[i]);
| ^~~~~~
exam.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:41:5: note: in expansion of macro '_foreq'
41 | _foreq(i, l, r) ans += (mx == b[i]);
| ^~~~~~
exam.cpp: In function 'int main()':
exam.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:50:13: note: in expansion of macro '_foreq'
50 | cin>>n; _foreq(i, 1,n) cin>>a[i]; _foreq(i, 1, n) cin>>b[i];
| ^~~~~~
exam.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:50:39: note: in expansion of macro '_foreq'
50 | cin>>n; _foreq(i, 1,n) cin>>a[i]; _foreq(i, 1, n) cin>>b[i];
| ^~~~~~
exam.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:51:5: note: in expansion of macro '_foreq'
51 | _foreq(i, 1, n){
| ^~~~~~
exam.cpp:18:33: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:52:9: note: in expansion of macro '_foreq'
52 | _foreq(x, 0, i-1)
| ^~~~~~