Problem | deforestation |
---|---|
User | CalebKow |
Submission Time | 2025-08-08 18:02:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deforestation.cpp: In function ‘int main()’:
deforestation.cpp:12:26: error: no matching function for call to ‘min(long long int, <unresolved overloaded function type>)’
12 | minimum = min(a+b*n,min);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from deforestation.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long long int]’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:36: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘const long long int&’
198 | min(const _Tp& __a, const _Tp& __b)
| ~~~~~~~~~~~^~~
/usr/in