fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A
  5. {
  6. public:
  7. void operator [] (int x) {cout<<"*********\n";}
  8. };
  9.  
  10.  
  11. int main() {
  12.  
  13. A *b = new A;
  14. b[2];
  15. return 0;
  16. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty