fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Index {
  5. int a, b;
  6. };
  7.  
  8. Index getMax(int nr) {
  9. Index l;
  10. l.a = 1;
  11. l.b = 9;
  12. return l;
  13. }
  14.  
  15.  
  16. int main() {
  17. Index best = getMax(4);
  18. cout << best.a << " " << best.b;
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
1 9