fork download
  1. #include <cstdio> //corrected
  2.  
  3.  
  4. int x=1, y=3, z=7;
  5.  
  6. void duplicate (int a, int b, int c)
  7. {
  8. a=a*2;
  9. b=b*2;
  10. c=c*2;
  11. }
  12.  
  13. int main ()
  14. {
  15.  
  16. duplicate (x, y, z);
  17. printf("The answer is %i and %i and %i",x,y,z);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
The answer is 1 and 3 and 7