#include <iostream>
#include <string>
using namespace std;
int main ()
{
cout << "Hello I am zyxo 64.\n";
cout << "I am a chatbot";
string name;
cout << "What is your name";
cin >> name;
cout << "Hello " << name << "Nice to meet you";
int age;
cout << "Can you guess how old I am";
cin >> age;
if(age== 64){
cout << "You are correct";
}else{
cout << "You are wrong I am 64";
}
int year;
cout << "I am not very good at dates.\n";
cout << "What year is it";
cin >> year;
cout << "That sound about right thank you"
return 0;
}
}
output:
main.cpp: In function ‘int main()’:
main.cpp:29:5: error: expected ‘;’ before ‘return’
return 0;
^~~~~~
main.cpp: At global scope:
main.cpp:33:1: error: expected declaration before ‘}’ token
}
^