Problem exponentiate
User justin271828
Submission Time 2023-06-17 17:04:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:4:9: error: ‘int exp’ redeclared as different kind of entity
4 | int exp(x, y) {
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from exponentiate.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:95:1: note: previous declaration ‘double exp(double)’
95 | __MATHCALL_VEC (exp,, (_Mdouble_ __x));
| ^~~~~~~~~~~~~~
exponentiate.cpp:4:9: error: ‘x’ was not declared in this scope
4 | int exp(x, y) {
| ^
exponentiate.cpp:4:12: error: ‘y’ was not declared in this scope; did you mean ‘yn’?
4 | int exp(x, y) {
| ^
| yn
exponentiat