Problem | exponentiate |
---|---|
User | ATHY |
Submission Time | 2024-06-20 09:48:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:6:13: error: expected unqualified-id before ‘>>’ token
6 | int T; int >> T;
| ^~
exponentiate.cpp:9:19: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
9 | cout << pow(A,B)%M << endl;
| ~~~~~~~~^~
| | |
| | int
| __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}