Problem | exponentiate |
---|---|
User | NoynYT |
Submission Time | 2025-02-13 16:40:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:10:15: error: invalid operands of types ‘double’ and ‘const char [2]’ to binary ‘operator<<’
10 | cout << x^e << "\n";
| ~ ^~ ~~~~
| | |
| | const char [2]
| double
exponentiate.cpp:11:11: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator^’
11 | return x^e
| ~^~
| | |
| | double
| double
exponentiate.cpp:11:13: error: expected ‘;’ before ‘}’ token
11 | return x^e
| ^
| ;
12 | }
| ~