fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct SomeClass
  5. {
  6. operator int() const { return d; }
  7. int d;
  8. };
  9.  
  10. int main() {
  11. SomeClass s;
  12. switch (s)
  13. {
  14. case 0:;
  15. case 1:;
  16. }
  17. // your code goes here
  18. return 0;
  19. }
Success #stdin #stdout 0s 4296KB
stdin
Standard input is empty
stdout
Standard output is empty