Problem | divisibility |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-01 08:59:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
divisibility.cpp: In function ‘int32_t main()’:
divisibility.cpp:18:48: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
18 | dp[i][(j+vect[i]+k)%k][0] |= dp[i][i-1][j][0];
| ^
divisibility.cpp:19:48: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
19 | dp[i][(j+vect[i]+k)%k][0] |= dp[i][i-1][j][1];
| ^
divisibility.cpp:20:48: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
20 | dp[i][(j-vect[i]+k)%k][1] |= dp[i][i-1][j][0];
| ^
divisibility.cpp:21:48: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, i