Problem findingpavement
User jwsk0
Submission Time 2025-10-29 22:11:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

findingpavement.cpp: In function ‘int main()’:
findingpavement.cpp:12:8: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<std::__cxx11::basic_string<char> > >, std::vector<std::__cxx11::basic_string<char> > >::value_type’ {aka ‘std::vector<std::__cxx11::basic_string<char> >’} and ‘std::string [W]’ {aka ‘std::__cxx11::basic_string<char> [W]’})
12 | P[i]=temp;
| ^~~~
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 findingpavement.cpp:1:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc