/in/foo.cc: In function 'int ISAP()':
/in/foo.cc:83:42: error: no matching function for call to 'min(int&, long long int&)'
83 | permit_flow = min(permit_flow, road->flow);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:50,
from /usr/include/c++/12/bits/locale_classes.h:40,
from /usr/include/c++/12/bits/ios_base.h:41,
from /usr/include/c++/12/ios:42,
from /usr/include/c++/12/ostream:38,
from /usr/include/c++/12/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/12/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/12/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
/in/foo.cc:83:42: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
83 | permit_flow = min(permit_flow, road->flow);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/12/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
/in/foo.cc:83:42: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
83 | permit_flow = min(permit_flow, road->flow);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/algorithm:61,
from /in/foo.cc:6:
/usr/include/c++/12/bits/stl_algo.h:5726:5: note: candidate: 'template<class _Tp> _Tp std::min(initializer_list<_Tp>)'
5726 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/12/bits/stl_algo.h:5726:5: note: template argument deduction/substitution failed:
/in/foo.cc:83:42: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
83 | permit_flow = min(permit_flow, road->flow);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_algo.h:5736:5: note: candidate: 'template<class _Tp, class _Compare> _Tp std::min(initializer_list<_Tp>, _Compare)'
5736 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/12/bits/stl_algo.h:5736:5: note: template argument deduction/substitution failed:
/in/foo.cc:83:42: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
83 | permit_flow = min(permit_flow, road->flow);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~