Problem sealevel
User gelastropod
Submission Time 2025-10-18 13:38:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sealevel.cpp: In function ‘int main()’:
sealevel.cpp:24:11: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<std::pair<long long int, long long int> > >, std::vector<std::pair<long long int, long long int> > >::value_type’ {aka ‘std::vector<std::pair<long long int, long long int> >’} and ‘std::pair<long long int, long long int>’)
24 | p[i] = j;
| ^
In file included from /usr/include/c++/9/vector:72,
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++.h:65,
from sealevel.cpp:1:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(cons