fork(1) download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <set>
  4. #include <utility>
  5. #include <vector>
  6. using namespace std;
  7.  
  8. int main() {
  9. const int NMAX = 3;
  10. typedef pair<int, set<int>> solution;
  11. solution s;
  12. s.first = -1;
  13. std::vector<std::vector<solution>> memo(NMAX, std::vector<solution>(NMAX, s));
  14.  
  15. for (auto&& nextVec : memo)
  16. {
  17. for (auto&& nextPair : nextVec)
  18. {
  19. std::cout << nextPair.first << " ";
  20. }
  21. std::cout << endl;
  22. }
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 3232KB
stdin
Standard input is empty
stdout
-1 -1 -1 
-1 -1 -1 
-1 -1 -1