24th Oct 2019, 3:22 AM
Dinesh S
Dinesh S - avatar
4 Réponses
+ 4
Try putting a std:: before the endl 👍
24th Oct 2019, 3:29 AM
Pete Cowling
Pete Cowling - avatar
+ 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.
24th Oct 2019, 3:31 AM
Ipang
+ 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
25th Oct 2019, 5:09 PM
Shubham Kumar
Shubham Kumar - avatar
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
25th Oct 2019, 8:41 PM
Samuel
Samuel - avatar