fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. std::string a = "\x7f";
  8. std::string b = "\x80";
  9.  
  10. cout << (a < b) << endl;
  11. cout << (a[0] < b[0]) << endl;
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
1
0