fork(3) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <limits>
  4.  
  5. int main() {
  6. std::vector <std::pair<short, int> >
  7. v{3, {std::numeric_limits<short>::max(), -1}};
  8. for (auto p : v)
  9. std::cout << p.first << ' ' << p.second << '\n';
  10. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
32767 -1
32767 -1
32767 -1