fork download
  1. #include <iostream>
  2. using namespace std
  3. ;
  4. int* create(int n){
  5. int *x=new int [n];
  6. return x;
  7. }
  8. void create2(int *x,int n){
  9. x=new int[n];
  10. }
  11. void read(int *x,int n){
  12. x=new int[n];
  13. }
  14. int sum(int x,int y){
  15. return x+y;
  16. }
  17. int main() {
  18. // your code goes here
  19. int a,b;
  20. cin>>a>>b;
  21. cout<<sum(a,b);
  22. return 0;
  23. }
Success #stdin #stdout 0.01s 5288KB
stdin
45
1
stdout
46