Problem duckwar
User PlayVoltz
Submission Time 2023-09-17 14:44:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckwar.cpp: In function ‘int32_t main()’:
duckwar.cpp:10:81: error: invalid operands of types ‘const long double’ and ‘int’ to binary ‘operator%’
10 | cout<<max((t-floor(num))*(k+floor(num)*u), (t-floor(num+1))*(k+floor(num+1)*u))%1000000007;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
| | |
| const long double int