fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int *x;// = new int(2);
  7. //delete(x);
  8. //x = nullptr;
  9. int y = 9;
  10. *x = 9;
  11. cout << "x:" << *x << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
x:9