educative.io

Why is not "Compiler error" the correct answer?

The “iostream” header is not included, and neither is the “std” namespace used. So this should not compile as “cout” is not declared in this scope.


Course: https://www.educative.io/courses/learn-cpp-from-scratch
Lesson: https://www.educative.io/courses/learn-cpp-from-scratch/quiz-NEXr6x9kE6K

Hello @Dimitrios_Charalampi,
Yes, you are right. We have promptly rectified the issue in the updated course. Thank you for bringing this to our attention.
Happy Learning