fork download
  1. #include <iostream>
  2. using namespace std;
  3. int plus_2(int n){
  4. return n+2;
  5. }
  6. int * plus_3(int n){
  7. int *x=new int[10];
  8. return x;
  9. }
  10. int main() {
  11. // your code goes here
  12. int n=5;
  13. int k=plus_2(n);
  14. cout<<k<<endl;
  15. int* l=plus_3(5);
  16. return 0;
  17. }
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
7