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 'bool subtask2()':
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:46:5: note: in expansion of macro '_foreq'
46 | _foreq(i, 2, n) yes &= (b[i] == b[i-1]);
| ^~~~~~
exam.cpp: In function 'long long int solve2()':
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:52:5: note: in expansion of macro '_foreq'
52 | _foreq(i, 1, n) exists |= (a[i] == B);
| ^~~~~~
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:56:5: note: in expansion of macro '_foreq'
56 | _foreq(i, 1, n+1){
| ^~~~~~
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:72:13: note: in expansion of macro '_foreq'
72 | 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:72:39: note: in expansion of macro '_foreq'
72 | cin>>n; _foreq(i, 1,n) cin>>a[i]; _foreq(i, 1, n) cin>>b[i];
| ^~~~~~