Problem | foreveralone |
---|---|
User | Celest |
Submission Time | 2023-08-21 15:45:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:10:12: error: no match for ‘operator=’ (operand types are ‘std::vector<bool>’ and ‘int’)
10 | arr[x]=0;
| ^
In file included from /usr/include/c++/9/vector:68,
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 foreveralone.cpp:1:
/usr/include/c++/9/bits/stl_bvector.h:717:7: note: candidate: ‘std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]’
717 | operator=(const vector& __x)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:717:31: note: no known conversion for argument 1 from ‘int’ to ‘const std::vecto