fork(1) download
  1. #include <iostream>
  2. #include <tuple>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int a = 10;
  8. int b = 5;
  9. tie(a,b)=make_tuple(b,a);
  10. cout << a << endl;
  11. cout << b << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
5
10