fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class test {
  5. int x = 0;
  6. public:
  7. void pa() {
  8. cout << x << "NULL????" << endl;
  9. }
  10. };
  11.  
  12. int main() {
  13. test * t = nullptr;
  14. t->pa();
  15. cout << "Hello world!" << endl;
  16. return 0;
  17. }
Runtime error #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty