#include <iostream> using namespace std; int main() { cout<<"Whats your name?"<<endl; cin<<name; cout<<"Hello, " name<<endl; return 0; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:6:6: error: 'name' was not declared in this scope cin<<name; ^ prog.cpp:7:18: error: expected ';' before 'name' cout<<"Hello, " name<<endl; ^
Standard output is empty