fork download
  1. #include <iostream>
  2.  
  3. class A {
  4. public:
  5. bool operator()(int x,int y)
  6. {return x<y;}
  7. };
  8.  
  9. int main() {
  10. A a;
  11.  
  12. std::cout << a(1, 2) << std::endl;
  13. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
1