fork(1) download
  1. #include <iostream>
  2. #include <tuple>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a = 5, b = 6;
  7. tie(a, b) = make_pair(b, a);
  8. cout << a << " " << b << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
6 5