+ 1
Check the following code ( In the description ) and find the Error
#include <iostream> //using namespace std; //Compiler version g++ 4.9 int main() { std::cout << "Hello" << std::endl << std::cout << "World"; return 0; }
3 Réponses
+ 7
You passed a std::cout to another.
std::cout<<"Hello"<<std::endl<<"World"; works.
+ 1
that's right
+ 1
You have not included "using namespace std" which also might be the cause for the error.