Problem splithunny
User personjs
Submission Time 2025-01-21 16:22:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:44:77: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
44 | std::cout << "Oh, bother. There are " << num - 1 << " pools of hunny." << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/iostream:39,
from splithunny.cpp:3:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~