fork 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. int c = 1;
  10. tie(a,b,c)=make_tuple(b,c,a);
  11. cout << a << endl;
  12. cout << b << endl;
  13. cout << c << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
5
1
10