0_0_23878316_4343.cpp: In function 'int main()': 0_0_23878316_4343.cpp:29:13: error: no match for 'operator[]' (operand types are 'std::bitset<505ull>::reference' and 'int') if(dp[i&1][M]==1){ ^