Problem exponentiate
User tjy9
Submission Time 2026-05-15 14:44:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:12:25: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
12 | std::cout << value << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/iostream:39,
from exponentiate.cpp:1:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~