Problem exponentiate
User oolimry
Submission Time 2023-09-09 17:08:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:8:14: error: expression list treated as compound expression in initializer [-fpermissive]
8 | int qexp(a, b){
| ^
exponentiate.cpp:8:15: error: expected ‘,’ or ‘;’ before ‘{’ token
8 | int qexp(a, b){
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:29:19: error: ‘qexp’ cannot be used as a function
29 | cout << qexp(a,b) << '\n';
| ^