fork download
  1. #include <iostream>
  2.  
  3. struct a
  4. {
  5. int b;
  6. };
  7.  
  8. a* pa = new a;
  9. pa->b = 100;
  10.  
  11. int main(void)
  12. {
  13.  
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9: error: expected constructor, destructor, or type conversion before ‘->’ token
stdout
Standard output is empty