Submission #305227

#TimeUsernameProblemLanguageResultExecution timeMemory
305227ScarletSCounting Mushrooms (IOI20_mushrooms)C++17
Compilation error
0 ms0 KiB
#include "mushrooms.h" #include <bits/stdc++.h> #define sz(x) (int)(x).size() using namespace std; /**int N,a[20000],totalQ=0; int use_machine(vector<int> v) { int k = sz(v), sendBack=0; ++totalQ; for (int i=1;i<k;++i) if (a[v[i]]!=a[v[i-1]]) ++sendBack; return sendBack; }**/ const int upkeep=80; int count_mushrooms(int n) { if (n<=226*2) { int ans=0; for (int i = 1; i+1 < n; i+=2) ans+=use_machine({i,0,i+1}); if (!(n&1)) ans+=use_machine({n-1,0}); return n-ans; } else { vector<int> v={0},w,m; int x,y,doneTill=0,k; while (max(sz(v),sz(w))<2) { if (use_machine({0,++doneTill})) w.push_back(doneTill); else v.push_back(doneTill); } while (max(sz(v),sz(w))<upkeep) { if (sz(v)>sz(w)) { k=use_machine({doneTill+1,v[0],doneTill+2,v[1]}); if (k&1) w.push_back(doneTill+1); else v.push_back(doneTill+1); if ((k>>1)&1) w.push_back(doneTill+2); else v.push_back(doneTill+2); } else { if (k&1) v.push_back(doneTill+1); else w.push_back(doneTill+1); if ((k>>1)&1) v.push_back(doneTill+2); else w.push_back(doneTill+2); } doneTill+=2; } x=sz(v);y=sz(w); while (doneTill+1<n) { m.clear(); if (sz(v)>sz(w)) { for (int i=doneTill+1;i<=min(doneTill+sz(v),n-1);++i) { m.push_back(i); m.push_back(0); } for (int i=1;i<sz(m);i+=2) m[i]=v[(i>>1)]; k=use_machine(m); if (m&1) { w.push_back(m[0]); ++y; } else { v.push_back(m[0]); ++x; } y+=(k>>1); x+=(((sz(m)-1)>>1)-(k>>1)); } else { for (int i=doneTill+1;i<=min(doneTill+sz(w),n-1);++i) { m.push_back(i); m.push_back(0); } for (int i=1;i<sz(m);i+=2) m[i]=w[(i>>1)]; k=use_machine(m); if (m&1) { v.push_back(m[0]); ++x; } else { w.push_back(m[0]); ++y; } x+=(k>>1); y+=(((sz(m)-1)>>1)-(k>>1)); } doneTill=m[sz(m)-2]; } return x; } } /** int main() { cin>>N; for (int i=0;i<N;++i) cin>>a[i]; cout<<count_mushrooms(N)<<"\n"; cout<<totalQ<<" queries\n"; }**/

Compilation message (stderr)

mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:82:22: error: no match for 'operator&' (operand types are 'std::vector<int>' and 'int')
   82 |                 if (m&1)
      |                     ~^~
      |                     | |
      |                     | int
      |                     std::vector<int>
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
                 from mushrooms.cpp:2:
/usr/include/c++/9/cstddef:165:3: note: candidate: 'constexpr std::byte std::operator&(std::byte, std::byte)'
  165 |   operator&(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/9/cstddef:165:18: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::byte'
  165 |   operator&(byte __l, byte __r) noexcept
      |             ~~~~~^~~
In file included from /usr/include/c++/9/ios:42,
                 from /usr/include/c++/9/istream:38,
                 from /usr/include/c++/9/sstream:38,
                 from /usr/include/c++/9/complex:45,
                 from /usr/include/c++/9/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/ios_base.h:83:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags, std::_Ios_Fmtflags)'
   83 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
      |   ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:83:27: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::_Ios_Fmtflags'
   83 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/ios_base.h:125:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator&(std::_Ios_Openmode, std::_Ios_Openmode)'
  125 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
      |   ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:125:27: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::_Ios_Openmode'
  125 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/ios_base.h:165:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator&(std::_Ios_Iostate, std::_Ios_Iostate)'
  165 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
      |   ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:165:26: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::_Ios_Iostate'
  165 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
      |             ~~~~~~~~~~~~~^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:66,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bitset:1433:5: note: candidate: 'template<long unsigned int _Nb> std::bitset<_Nb> std::operator&(const std::bitset<_Nb>&, const std::bitset<_Nb>&)'
 1433 |     operator&(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
      |     ^~~~~~~~
/usr/include/c++/9/bitset:1433:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   'std::vector<int>' is not derived from 'const std::bitset<_Nb>'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/bits/shared_ptr_atomic.h:33,
                 from /usr/include/c++/9/memory:82,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:82,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/atomic_base.h:99:3: note: candidate: 'constexpr std::memory_order std::operator&(std::memory_order, std::__memory_order_modifier)'
   99 |   operator&(memory_order __m, __memory_order_modifier __mod)
      |   ^~~~~~~~
/usr/include/c++/9/bits/atomic_base.h:99:26: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::memory_order'
   99 |   operator&(memory_order __m, __memory_order_modifier __mod)
      |             ~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/valarray:1191:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__bitwise_and, _Tp>::result_type> std::operator&(const std::valarray<_Tp>&, const std::valarray<_Tp>&)'
 1191 | _DEFINE_BINARY_OPERATOR(&, __bitwise_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/valarray:1191:1: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   'std::vector<int>' is not derived from 'const std::valarray<_Tp>'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/valarray:1191:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__bitwise_and, _Tp>::result_type> std::operator&(const std::valarray<_Tp>&, const typename std::valarray<_Tp>::value_type&)'
 1191 | _DEFINE_BINARY_OPERATOR(&, __bitwise_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/valarray:1191:1: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   'std::vector<int>' is not derived from 'const std::valarray<_Tp>'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/valarray:1191:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__bitwise_and, _Tp>::result_type> std::operator&(const typename std::valarray<_Tp>::value_type&, const std::valarray<_Tp>&)'
 1191 | _DEFINE_BINARY_OPERATOR(&, __bitwise_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/valarray:1191:1: note:   template argument deduction/substitution failed:
mushrooms.cpp:82:23: note:   mismatched types 'const std::valarray<_Tp>' and 'int'
   82 |                 if (m&1)
      |                       ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:105,
                 from mushrooms.cpp:2:
/usr/include/c++/9/future:143:20: note: candidate: 'constexpr std::launch std::operator&(std::launch, std::launch)'
  143 |   constexpr launch operator&(launch __x, launch __y)
      |                    ^~~~~~~~
/usr/include/c++/9/future:143:37: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::launch'
  143 |   constexpr launch operator&(launch __x, launch __y)
      |                              ~~~~~~~^~~
mushrooms.cpp:105:22: error: no match for 'operator&' (operand types are 'std::vector<int>' and 'int')
  105 |                 if (m&1)
      |                     ~^~
      |                     | |
      |                     | int
      |                     std::vector<int>
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
                 from mushrooms.cpp:2:
/usr/include/c++/9/cstddef:165:3: note: candidate: 'constexpr std::byte std::operator&(std::byte, std::byte)'
  165 |   operator&(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/9/cstddef:165:18: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::byte'
  165 |   operator&(byte __l, byte __r) noexcept
      |             ~~~~~^~~
In file included from /usr/include/c++/9/ios:42,
                 from /usr/include/c++/9/istream:38,
                 from /usr/include/c++/9/sstream:38,
                 from /usr/include/c++/9/complex:45,
                 from /usr/include/c++/9/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/ios_base.h:83:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags, std::_Ios_Fmtflags)'
   83 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
      |   ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:83:27: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::_Ios_Fmtflags'
   83 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/ios_base.h:125:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator&(std::_Ios_Openmode, std::_Ios_Openmode)'
  125 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
      |   ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:125:27: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::_Ios_Openmode'
  125 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/ios_base.h:165:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator&(std::_Ios_Iostate, std::_Ios_Iostate)'
  165 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
      |   ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:165:26: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::_Ios_Iostate'
  165 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
      |             ~~~~~~~~~~~~~^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:66,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bitset:1433:5: note: candidate: 'template<long unsigned int _Nb> std::bitset<_Nb> std::operator&(const std::bitset<_Nb>&, const std::bitset<_Nb>&)'
 1433 |     operator&(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
      |     ^~~~~~~~
/usr/include/c++/9/bitset:1433:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:105:23: note:   'std::vector<int>' is not derived from 'const std::bitset<_Nb>'
  105 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/bits/shared_ptr_atomic.h:33,
                 from /usr/include/c++/9/memory:82,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:82,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/atomic_base.h:99:3: note: candidate: 'constexpr std::memory_order std::operator&(std::memory_order, std::__memory_order_modifier)'
   99 |   operator&(memory_order __m, __memory_order_modifier __mod)
      |   ^~~~~~~~
/usr/include/c++/9/bits/atomic_base.h:99:26: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::memory_order'
   99 |   operator&(memory_order __m, __memory_order_modifier __mod)
      |             ~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:105:23: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  105 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:105:23: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  105 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:105:23: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
  105 |                 if (m&1)
      |                       ^
In file included from /usr/include/c++/9/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
                 from mushrooms.cpp:2:
/usr/include/c++/9/bits/valarray_after.h:411:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_and, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__bitwise_and, typename _Dom1::value_type>::result_type> std::operator&(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)'
  411 |     _DEFINE_EXPR_BINARY_OPERATOR(&, __bitwise_and)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:411:5: note:   template argument deduction/substitution failed:
mushrooms.cpp:105:23: note:   'std::vecto