answer.code: In function ‘int ask1()’:
answer.code:28:14: error: no matching function for call to ‘min(ll&, int)’
28 | int y=min(n,x+1);
| ~~~^~~~~~~
In file included from /usr/include/c++/13/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from answer.code:1:
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
answer.code:28:14: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
28 | int y=min(n,x+1);
| ~~~^~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
answer.code:28:14: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
28 | int y=min(n,x+1);
| ~~~^~~~~~~
In file included from /usr/include/c++/13/algorithm:61:
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: candidate: ‘template<class _Tp> _Tp std::min(initializer_list<_Tp>)’
5775 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: template argument deduction/substitution failed:
answer.code:28:14: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
28 | int y=min(n,x+1);
| ~~~^~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: candidate: ‘template<class _Tp, class _Compare> _Tp std::min(initializer_list<_Tp>, _Compare)’
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: template argument deduction/substitution failed:
answer.code:28:14: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
28 | int y=min(n,x+1);
| ~~~^~~~~~~
answer.code: At global scope:
answer.code:51:5: error: redefinition of ‘int ask1()’
51 | int ask1()
| ^~~~
answer.code:23:5: note: ‘int ask1()’ previously defined here
23 | int ask1()
| ^~~~
answer.code: In function ‘int ask1()’:
answer.code:56:14: error: no matching function for call to ‘min(ll&, int)’
56 | int y=min(n,x+2);
| ~~~^~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
answer.code:56:14: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
56 | int y=min(n,x+2);
| ~~~^~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
answer.code:56:14: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
56 | int y=min(n,x+2);
| ~~~^~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: candidate: ‘template<class _Tp> _Tp std::min(initializer_list<_Tp>)’
5775 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: template argument deduction/substitution failed:
answer.code:56:14: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
56 | int y=min(n,x+2);
| ~~~^~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: candidate: ‘template<class _Tp, class _Compare> _Tp std::min(initializer_list<_Tp>, _Compare)’
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: template argument deduction/substitution failed:
answer.code:56:14: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
56 | int y=min(n,x+2);
| ~~~^~~~~~~
answer.code: In function ‘void work()’:
answer.code:99:41: error: ‘ask2’ was not declared in this scope; did you mean ‘ask1’?
99 | ans=max(ans,ask1()),ans=max(ans,ask2());
| ^~~~
| ask1
answer.code: In function ‘long long int read()’:
answer.code:6:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_re...