fork(1) download
  1. #include <iostream>
  2. #include <tuple>
  3. using namespace std;
  4.  
  5. tuple<int, int, int> return_tuple1() {
  6. int a = 33;
  7. int b = 22;
  8. int c = 31;
  9. return tie(a, b, c);
  10. }
  11.  
  12. tuple<int, int, int> return_tuple2() {
  13. int a = 33;
  14. int b = 22;
  15. int c = 31;
  16. return make_tuple(a, b, c);
  17. }
  18.  
  19. int main() {
  20. auto a = return_tuple1();
  21. auto b = return_tuple2();
  22. return 0;
  23. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty