Problem | exponentiate |
---|---|
User | wongethan8192 |
Submission Time | 2023-02-13 16:22:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:2:103: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
2 | using namespace std;int main(){int N;cin>>N;for(int i=0;i<N;i++){int A,B,M;cin>>A>>B>>M;cout<<pow(A,B)%M;}}
| ~~~~~~~~^~
| | |
| | int
| __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}