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