Hello! You should write:
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
string name;
cout << "What is your name?" << endl;
cin >> name;
cout << "Hi, I am " << name;
}
It will ask your name and say "Hi" and your name after. Please tell me if there is anything wrong.