fork(1) download
  1. #include <iostream>
  2. // #include <conio.h>
  3. #include <string>
  4.  
  5. // using namespace std;
  6.  
  7. int main() {
  8. std::string Answer;
  9. std::cout << "Hello! I'm a new born AI.";
  10. std::cin >> Answer;
  11. if (Answer == "Hello") {
  12. std::cout << "Hello" << std::endl;
  13. }
  14. // _getch();
  15. return 0;
  16. }
Success #stdin #stdout 0s 4272KB
stdin
Standard input is empty
stdout
Hello! I'm a new born AI.