fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s1 = "1";
  6. string s2 = "12";
  7.  
  8. cout << s1.compare(s2);
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
-1