| Problem | 01knapsack |
|---|---|
| User | undefinedcritter |
| Submission Time | 2026-07-08 17:43:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:8:57: error: unable to find numeric literal operator ‘operator""f’
8 | vector<pair<float,pair<long long,long long>>> items(N,{0f,{0,0}});
| ^~
01knapsack.cpp:8:66: error: no matching function for call to ‘std::vector<std::pair<float, std::pair<long long int, long long int> > >::vector(int&, <brace-enclosed initializer list>)’
8 | vector<pair<float,pair<long long,long long>>> items(N,{0f,{0,0}});
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++