fork download
  1. #include <iostream>
  2. #include <utility>
  3.  
  4. std::pair<int, double> getPair()
  5. {
  6. return std::make_pair(0, 0);
  7. }
  8.  
  9. int main()
  10. {
  11. auto p = getPair();
  12. std::cout << p.first << " " << p.second << std::endl;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4428KB
stdin
Standard input is empty
stdout
0 0