fork download
  1. class A
  2. {
  3. public:
  4. int f() {};
  5. float g(){};
  6. operator int() { return f(); }
  7. operator float() { return g(); }
  8. };
  9. void r(int x){}
  10. void t(float x){}
  11. int main()
  12. {
  13. A a;
  14. r(a);
  15. t(a);
  16. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout

Standard output is empty