Problem | construct |
---|---|
User | bakchormee |
Submission Time | 2024-05-26 22:14:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
construct.cpp: In function ‘int main()’:
construct.cpp:34:33: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} and ‘double’ to binary ‘operator%’
34 | sum[i] = (sum[i] - dp[j][i]) % (1e9+7);
| ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~
| | |
| | double
| __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}
construct.cpp:37:17: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} and ‘double’ to binary ‘operator%’
37 | cout << sum[m] % (1e9+7);