| Problem | harddisk |
|---|---|
| User | undefinedcritter |
| Submission Time | 2026-09-09 13:37:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
harddisk.cpp: In function ‘int main()’:
harddisk.cpp:26:32: error: expected primary-expression before ‘)’ token
26 | vector<pll> values1(sums1size,);
| ^
harddisk.cpp:34:25: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} and ‘long long int’)
34 | values1[i] = sums1[i].second;
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
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 harddisk.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2&