Problem sumint
User ryannbreaker
Submission Time 2024-02-14 19:05:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:2:17: error: ‘stdl’ is not a namespace-name
2 | using namespace stdl;
| ^~~~
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
7 | cout << "Input number of days" << endl;
| ^~~~
| std::cout
In file included from sumint.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
sumint.cpp:7:36: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
7 | cout << "Input number of days" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/iostream:39,
from sumint.cpp:1:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 |