Main.cpp:14:16: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
14 | const ll INF = 1e18;
| ^~~~
Main.cpp: In function 'int main()':
Main.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define For(i, n) for(int (i) = 0; (i) < (n); (i)++)
| ^
Main.cpp:90:2: note: in expansion of macro 'For'
90 | For(i, n + 1)
| ^~~
Main.cpp:7:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
7 | #define For(i, n) for(int (i) = 0; (i) < (n); (i)++)
| ^
Main.cpp:96:3: note: in expansion of macro 'For'
96 | For(j, m + 1)
| ^~~
Main.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define For(i, n) for(int (i) = 0; (i) < (n); (i)++)
| ^
Main.cpp:118:2: note: in expansion of macro 'For'
118 | For(i, n + 1)
| ^~~
Main.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define For(i, n) for(int (i) = 0; (i) < (n); (i)++)
| ^
Main.cpp:120:2: note: in expansion of macro 'For'
120 | For(i, m + 1)
| ^~~
Main.cpp:143:32: error: no matching function for call to 'max(std::array<int, 2>::value_type, long long int)'
143 | r[0] = max(x[0] - k + 1, 1ll);
| ^
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 Main.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:
Main.cpp:143:32: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
143 | r[0] = max(x[0] - k + 1, 1ll);
| ^
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 Main.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:
Main.cpp:143:32: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
143 | r[0] = max(x[0] - k + 1, 1ll);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.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:
Main.cpp:143:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
143 | r[0] = max(x[0] - k + 1, 1ll);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.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:
Main.cpp:143:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
143 | r[0] = max(x[0] - k + 1, 1ll);
| ^
Main.cpp:145:32: error: no matching function for call to 'max(std::array<int, 2>::value_type, long long int)'
145 | c[0] = max(x[1] - k + 1, 1ll);
| ^
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 Main.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:
Main.cpp:145:32: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
145 | c[0] = max(x[1] - k + 1, 1ll);
| ^
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 Main.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:
Main.cpp:145:32: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
145 | c[0] = max(x[1] - k + 1, 1ll);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.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:
Main.cpp:145:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
145 | c[0] = max(x[1] - k + 1, 1ll);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.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:
Main.cpp:145:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
145 | c[0] = max(x[1] - k + 1, 1ll);
| ^