Problem | hackthectf |
---|---|
User | chenweilian |
Submission Time | 2025-03-17 19:58:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hackthectf.cpp: In function ‘int main()’:
hackthectf.cpp:100:17: error: no matching function for call to ‘min(int&, ll&)’
100 | REP(i, min(n, k)) {
| ^
hackthectf.cpp:14:41: note: in definition of macro ‘FOR’
14 | #define FOR(i, s, e) for(int i = s; i < e; i++)
| ^
hackthectf.cpp:100:2: note: in expansion of macro ‘REP’
100 | REP(i, min(n, k)) {
| ^~~
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 hackthectf.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_algobase.h:198:5: note: template argumen