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