Problem | exponentiate |
---|---|
User | popperoni |
Submission Time | 2023-12-16 20:30:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:21:33: error: expected ‘(’ before ‘pow’
21 | cout << static_cast<long long>pow(b, c) % d << endl;
| ^~~
| (
exponentiate.cpp:21:43: 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%’
21 | cout << static_cast<long long>pow(b, c) % d << endl;
| ~~~~~~~~~ ^ ~
| | |
| | long long int
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}
exponentiate.cpp:21:54: error: expected ‘)’ before ‘;’ token
21 | cout << static_cast<lon