Problem mandarins
User Kenniene
Submission Time 2024-04-21 11:39:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mandarins.cpp: In function ‘int main()’:
mandarins.cpp:11:7: error: invalid operands of types ‘int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
11 | res %= pow(10, 9) + 7;
| ~~~~^~~~~~~~~~~~~~~~~
mandarins.cpp:11:23: error: in evaluation of ‘operator%=(int, __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double})’
11 | res %= pow(10, 9) + 7;
| ^
mandarins.cpp:18:13: error: invalid operands of types ‘int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
18 | res %= pow(10, 9) + 7;
| ~~~~^~~~~~~~~~~~~~~~~
mandarins.cpp:18:29: error: in evaluation of ‘operator%=(int, __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double})’
18 | res %= pow(10, 9) + 7;
| ^
mandarins.cpp:28:13: