fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. char s1[20], s2[20];
  8. cin >> s1 >> s2;
  9. cout << strcmp(s1, s2);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5500KB
stdin
revers
server
stdout
-1