Problem exponentiate
User ATHY
Submission Time 2024-06-20 09:47:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:9:19: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type’ {aka ‘double’} and ‘ll’ {aka ‘long long int’} to binary ‘operator%’
9 | cout << pow(A,B)%M << endl;
| ~~~~~~~~^~
| | |
| | ll {aka long long int}
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}