12345678
std::string word1, word2; std::cin >> word1 >> word2; if(word1.length() > word2.length()) std::cout << word1 << " is longer than " << word2; if(word1.length() < word2.length()) std::cout << word1 << " is shorter than " << word2; if(word1.length() == word2.length()) std::cout << word1 << " same length as " << word2;