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

Compile Error

mandarins.cpp: In function ‘int32_t main()’:
mandarins.cpp:11:7: error: invalid operands of types ‘long long 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%=(long long 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 ‘long long 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%=(long long int, __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double})’
18 | res %= pow(10, 9) + 7;
|