exam.cpp: In function 'long long int pass(long long int, long long int)':
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #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:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #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:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #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 'bool subtask3()':
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:50:5: note: in expansion of macro '_foreq'
50 | _foreq(i, 2, n)
| ^~~~~~
exam.cpp: In function 'long long int solve2()':
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:57:5: note: in expansion of macro '_foreq'
57 | _foreq(i, 1, n) exists |= (a[i] == B);
| ^~~~~~
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:61:5: note: in expansion of macro '_foreq'
61 | _foreq(i, 1, n+1){
| ^~~~~~
exam.cpp: In function 'long long int solve3()':
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:73:5: note: in expansion of macro '_foreq'
73 | _foreq(i, 1, n){
| ^~~~~~
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:75:9: note: in expansion of macro '_foreq'
75 | _foreq(j, i, n){
| ^~~~~~
exam.cpp:76:13: error: 'MyMax' was not declared in this scope
76 | MyMax(mx, dp[i-1][j]);
| ^~~~~
exam.cpp: In function 'void readInput()':
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:83:13: note: in expansion of macro '_foreq'
83 | cin>>n; _foreq(i, 1,n) cin>>a[i]; _foreq(i, 1, n) cin>>b[i];
| ^~~~~~
exam.cpp:17:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
exam.cpp:83:39: note: in expansion of macro '_foreq'
83 | cin>>n; _foreq(i, 1,n) cin>>a[i]; _foreq(i, 1, n) cin>>b[i];
| ^~~~~~