Main.cc: In function ‘std::vector get_primes(int)’:
Main.cc:11:27: error: no match for ‘operator=’ (operand types are ‘std::vector’ and ‘bool’)
is_prime = is_prime = false;
^~~~~
In file included from /usr/include/c++/7/vector:65:0,
from Main.cc:2:
/usr/include/c++/7/bits/stl_bvector.h:682:5: note: candidate: std::vector& std::vector::operator=(const std::vector&) [with _Alloc = std::allocator]
operator=(const vector& __x)
^~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:682:5: note: no known conversion for argument 1 from ‘bool’ to ‘const std::vector&’
/usr/include/c++/7/bits/stl_bvector.h:713:5: note: candidate: std::vector& std::vector::operator=(std::vector&&) [with _Alloc = std::allocator]
operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:713:5: note: no known conversion for argument 1 from ‘bool’ to ‘std::vector&&’
/usr/include/c++/7/bits/stl_bvector.h:743:5: note: candidate: std::vector& std::vector::operator=(std::initializer_list) [with _Alloc = std::allocator]
operator=(initializer_list __l)
^~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:743:5: note: no known conversion for argument 1 from ‘bool’ to ‘std::initializer_list’