Problem flybot
User herngr3y
Submission Time 2026-06-28 15:14:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flybot.cpp: In function ‘int main()’:
flybot.cpp:40:46: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} and ‘double’ to binary ‘operator%’
40 | dp[i][j] = (dp[i - 1][j] + dp[i][j - 1]) % 1e9 + 7;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~
| | |
| | double
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
flybot.cpp:53:30: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} and ‘double’ to binary ‘operator%’
53 | cout << dp[h - 1][w - 1] % 1e9 + 7;