Problem | exponentiate |
---|---|
User | nguyendinhanh1508 |
Submission Time | 2024-01-12 00:12:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int32_t main()’:
exponentiate.cpp:12:28: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type’ {aka ‘double’} and ‘long long int’ to binary ‘operator%’
12 | a[i] = pow(A[i], B[i]) % M[i];
| ~~~~~~~~~~~~~~~ ^ ~~~~
| | |
| | long long int
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}