fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string a,b;
  6. cin >> a >> b;
  7. if(a == b){
  8. cout << "two people have the same name";
  9. }
  10. else cout << "two people don't have the same name";
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5280KB
stdin
manh bao
stdout
two people don't have the same name