fork download
  1. #include<iostream>
  2. #include<string>
  3. using std::cout;
  4. using std::endl;
  5. using std::string;
  6.  
  7.  
  8. template <typename T>
  9. int compare(const T& lhs, const T& rhs) {
  10. if (lhs<rhs) {
  11. return T::x;
  12. }
  13. else if (rhs<lhs) {
  14. return 1;
  15. }
  16. else {
  17. return 0;
  18. }
  19. }
  20.  
  21. int main() {
  22. // no calls for compare are made here
  23. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty