fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. string a, b;
  7. getline(cin, a);
  8. getline(cin, b);
  9.  
  10. // Process -> Output
  11. if (a == b) {
  12. cout << "two people have the same name";
  13. } else {
  14. cout << "two people don't have the same name";
  15. }
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 5292KB
stdin
John Cena
John Cena
stdout
two people have them same name