Problem divisibility
User PlayVoltz
Submission Time 2023-10-01 08:58:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

divisibility.cpp: In function ‘int32_t main()’:
divisibility.cpp:18:46: error: no match for ‘operator[]’ (operand types are ‘std::vector<bool>::reference’ {aka ‘std::_Bit_reference’} and ‘int’)
18 | dp[i][(j+vect[i]+k)%k][0] |= dp[i][i-1][j][0];
| ^
divisibility.cpp:19:46: error: no match for ‘operator[]’ (operand types are ‘std::vector<bool>::reference’ {aka ‘std::_Bit_reference’} and ‘int’)
19 | dp[i][(j+vect[i]+k)%k][0] |= dp[i][i-1][j][1];
| ^
divisibility.cpp:20:46: error: no match for ‘operator[]’ (operand types are ‘std::vector<bool>::reference’ {aka ‘std::_Bit_reference’} and ‘int’)
20 | dp[i][(j-vect[i]+k)%k][1] |= dp[i][i-1][j][0];
| ^
divisibility.cpp:21:46: error: no match for ‘operator[]’ (operand types are ‘std::vector<bool>::reference’ {aka ‘std::_Bi