| Problem | laughter |
|---|---|
| User | yc |
| Submission Time | 2026-05-09 06:52:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
laughter.cpp: In function ‘long long int sweepv(long long int, long long int, long long int)’:
laughter.cpp:69:61: error: no matching function for call to ‘max(int, long long int)’
69 | n2.push_back(make_pair(make_pair(max(0,n1[i].first-x),1),make_pair(max(0,n1[i].second-x),min(c-1,n1[i].second+x))));
| ^
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 laughter.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argument deduction/substitution failed:
laughter.cpp:69:61: note: deduced confl