fork download
  1. #include <iostream>
  2. using namespace std;
  3. int* createPtr()
  4. {
  5. int* a = new int;
  6. return a;
  7. }
  8. int main() {
  9. // your code goes here
  10. createPtr();
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Standard output is empty