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.  
  10. int main() {
  11. std::cout << (*reinterpret_cast<A*>(0))(1, 2) << std::endl;
  12. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
1