Problem 3nplus1
User senkyte
Submission Time 2024-02-14 10:09:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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