fork 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. }
  17.  
  18. //https://pt.stackoverflow.com/q/146308/101
Runtime error #stdin #stdout 0s 4488KB
stdin
Standard input is empty
stdout
Standard output is empty