| Problem | notduckhunt |
|---|---|
| User | pearl333 |
| Submission Time | 2025-12-05 17:20:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
notduckhunt.cpp: In function ‘int main()’:
notduckhunt.cpp:55:47: error: request for member ‘first’ in ‘pm[(i - 1)]’, which is of non-class type ‘long long int’
55 | for (int i = 1;i<n;i++) pm[i] = min(pm[i-1].first,pref[i]);
| ^~~~~
notduckhunt.cpp:66:29: error: no matching function for call to ‘min(int, long long int&)’
66 | if (pref[i]-min(0,pm[i-s])>0) {x = true;break;}
| ^
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 notduckhunt.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobas