fork download
  1. #ifndef POINTER06_H_
  2. #define POINTER06_H_
  3.  
  4. #include <cstdio>
  5. #include <cstdlib>
  6. #include <cstring>
  7. #include <cassert>
  8.  
  9. void int_swap (int &a, int &b);
  10.  
  11. int main ()
  12. {
  13. int n;
  14. scanf("%d", &n);
  15.  
  16. for (int i = 0, a, b; i < n; i++)
  17. {
  18. scanf("%d%d", &a, &b);
  19. int_swap(a, b);
  20. printf("%d %d\n", a, b);
  21. }
  22. }
  23. #endif // POINTER06_H_
  24.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty