zoltan.cpp: In function 'void solve()':
zoltan.cpp:9:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define ff(i,s,f) for(ll (i)=s;(i)<(f);(i)++)
| ^
zoltan.cpp:89:5: note: in expansion of macro 'ff'
89 | ff(i,0,n){
| ^~
zoltan.cpp:9:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define ff(i,s,f) for(ll (i)=s;(i)<(f);(i)++)
| ^
zoltan.cpp:94:5: note: in expansion of macro 'ff'
94 | ff(i,0,n){
| ^~
zoltan.cpp:10:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fb(i,s,f) for(ll (i)=s-1;(i)>=f;(i)--)
| ^
zoltan.cpp:97:5: note: in expansion of macro 'fb'
97 | fb(i,n,0){
| ^~
zoltan.cpp:103:32: error: no matching function for call to 'max(pii&, std::pair<int, int>)'
103 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
zoltan.cpp:103:32: note: deduced conflicting types for parameter 'const _Tp' ('std::pair<long long int, long long int>' and 'std::pair<int, int>')
103 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
zoltan.cpp:103:32: note: deduced conflicting types for parameter 'const _Tp' ('std::pair<long long int, long long int>' and 'std::pair<int, int>')
103 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
zoltan.cpp:103:32: note: 'std::pair<long long int, long long int>' is not derived from 'std::initializer_list<_Tp>'
103 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
zoltan.cpp:103:32: note: 'std::pair<long long int, long long int>' is not derived from 'std::initializer_list<_Tp>'
103 | qry=max(qry,mp(1,1));
| ^
zoltan.cpp:112:32: error: no matching function for call to 'max(pii&, std::pair<int, int>)'
112 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
zoltan.cpp:112:32: note: deduced conflicting types for parameter 'const _Tp' ('std::pair<long long int, long long int>' and 'std::pair<int, int>')
112 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
zoltan.cpp:112:32: note: deduced conflicting types for parameter 'const _Tp' ('std::pair<long long int, long long int>' and 'std::pair<int, int>')
112 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
zoltan.cpp:112:32: note: 'std::pair<long long int, long long int>' is not derived from 'std::initializer_list<_Tp>'
112 | qry=max(qry,mp(1,1));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from zoltan.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
zoltan.cpp:112:32: note: 'std::pair<long long int, long long int>' is not derived from 'std::initializer_list<_Tp>'
112 | qry=max(qry,mp(1,1));
| ^
zoltan.cpp:9:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
9 | #define ff(i,s,f) for(ll (i)=s;(i)<(f);(i)++)
| ^
zoltan.cpp:118:5: note: in expansion of macro 'ff'
118 | ff(i,0,n){
| ^~