molecules.cpp: In function 'std::bitset<10000> DP(int, int, std::bitset<10000>)':
molecules.cpp:21:39: error: no match for 'operator=' (operand types are 'std::bitset<100>' and 'std::bitset<10000>')
21 | res1 = DP(i+1, sum + W[i], choosen);
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:66,
from molecules.cpp:2:
/usr/include/c++/9/bitset:751:11: note: candidate: 'constexpr std::bitset<100>& std::bitset<100>::operator=(const std::bitset<100>&)'
751 | class bitset
| ^~~~~~
/usr/include/c++/9/bitset:751:11: note: no known conversion for argument 1 from 'std::bitset<10000>' to 'const std::bitset<100>&'
/usr/include/c++/9/bitset:751:11: note: candidate: 'constexpr std::bitset<100>& std::bitset<100>::operator=(std::bitset<100>&&)'
/usr/include/c++/9/bitset:751:11: note: no known conversion for argument 1 from 'std::bitset<10000>' to 'std::bitset<100>&&'
molecules.cpp:23:32: error: no match for 'operator=' (operand types are 'std::bitset<100>' and 'std::bitset<10000>')
23 | res2 = DP(i+1, sum, choosen);
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:66,
from molecules.cpp:2:
/usr/include/c++/9/bitset:751:11: note: candidate: 'constexpr std::bitset<100>& std::bitset<100>::operator=(const std::bitset<100>&)'
751 | class bitset
| ^~~~~~
/usr/include/c++/9/bitset:751:11: note: no known conversion for argument 1 from 'std::bitset<10000>' to 'const std::bitset<100>&'
/usr/include/c++/9/bitset:751:11: note: candidate: 'constexpr std::bitset<100>& std::bitset<100>::operator=(std::bitset<100>&&)'
/usr/include/c++/9/bitset:751:11: note: no known conversion for argument 1 from 'std::bitset<10000>' to 'std::bitset<100>&&'
molecules.cpp:28:17: error: no match for 'operator=' (operand types are 'std::bitset<10000>' and 'std::bitset<100>')
28 | memo[sum] = res;
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:66,
from molecules.cpp:2:
/usr/include/c++/9/bitset:751:11: note: candidate: 'constexpr std::bitset<10000>& std::bitset<10000>::operator=(const std::bitset<10000>&)'
751 | class bitset
| ^~~~~~
/usr/include/c++/9/bitset:751:11: note: no known conversion for argument 1 from 'std::bitset<100>' to 'const std::bitset<10000>&'
/usr/include/c++/9/bitset:751:11: note: candidate: 'constexpr std::bitset<10000>& std::bitset<10000>::operator=(std::bitset<10000>&&)'
/usr/include/c++/9/bitset:751:11: note: no known conversion for argument 1 from 'std::bitset<100>' to 'std::bitset<10000>&&'