Problem | mandarins |
---|---|
User | Kenniene |
Submission Time | 2024-04-21 12:19:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mandarins.cpp: In function ‘int32_t main()’:
mandarins.cpp:19:4: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
19 | n %= mod;
| ^
mandarins.cpp:3:13: error: in evaluation of ‘operator%=(float, int)’
3 | #define mod 1000000007
| ^~~~~~~~~~
mandarins.cpp:19:7: note: in expansion of macro ‘mod’
19 | n %= mod;
| ^~~
mandarins.cpp:20:7: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
20 | k %= mod;
| ^
mandarins.cpp:3:13: error: in evaluation of ‘operator%=(float, int)’
3 | #define mod 1000000007
| ^~~~~~~~~~
mandarins.cpp:20:10: note: in expansion of macro ‘mod’
20 | k %= mod;
| ^~~
mandarins.cpp:23:6: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
23 | res %= mod;
| ^
mandarins.cpp:3:13: error: in evaluation of ‘op