input/code.cpp: In function 'int main()':
input/code.cpp:19:12: error: no matching function for call to 'max(int&, long long int)'
19 | f = max(a[i], a[i] + f);
| ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from input/code.cpp:1:
/usr/include/c++/11/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++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
input/code.cpp:19:12: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
19 | f = max(a[i], a[i] + f);
| ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/specfun.h:45,...