fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string s1 = "ab";
  7. string s2 = "Abc";
  8.  
  9. if(s1 > s2)
  10. cout << "yes";
  11. else
  12. cout << "NO";
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
yes