+ 3
why this code showing error?
4 Respuestas
+ 4
Try putting a std:: before the endl 👍
+ 4
Since you commented the `using namespace std;` line, the `endl` should be written as `std::endl`. The `endl` declaration was included in the std namespace.
+ 1
This code is showing error as you have written namespace as comment.
To run code properly, remove // from second line. You code will start working
0
Remove the comment before "using namespace std" then write return 0 if its int function then close curly brackets
If its void main you don't need return 0 statment just close curly brackets