| Problem | duckhunt37 |
|---|---|
| User | weccs |
| Submission Time | 2025-12-22 10:20:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt37.cpp:6:7: error: expected constructor, destructor, or type conversion before ‘(’ token
6 | memset(dp,make_pair(LLONG_MAX, 0),sizeof(dp));
| ^
duckhunt37.cpp: In function ‘std::pair<long long int, long long int> days(long long int)’:
duckhunt37.cpp:40:36: error: no match for ‘operator+’ (operand types are ‘std::pair<long long int, long long int>’ and ‘int’)
40 | dp[x] = comp(dp[x] + 1, make_pair(pre.first + 1, m - a[i]));
| ~~~~~ ^ ~
| | |
| | int
| std::pair<long long int, long long int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
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