Problem sightseeing
User Pan
Submission Time 2023-11-30 16:31:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sightseeing.cpp: In function ‘int main()’:
sightseeing.cpp:5:21: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
5 | std::cout << 30 << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from sightseeing.cpp:1:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~