fork download
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8. class Graph
  9. {
  10. private:
  11. vector<vector<pair<int, int>>> matrix;
  12. public:
  13. Graph() = default;
  14. Graph(size_t nodes, size_t edges);
  15. Graph(size_t nodes, size_t edges, istream &is);
  16. };
  17.  
  18. Graph::Graph (size_t nodes, size_t edges)
  19. {
  20. matrix.resize (nodes);
  21. for (auto &v : matrix)
  22. v.resize (nodes);
  23. }
  24.  
  25. Graph::Graph(size_t nodes, size_t edges, istream &is) : Graph(nodes, edges)
  26. {
  27.  
  28. }
  29.  
  30. int main() {
  31. /* Enter your code here. Read input from STDIN. Print output to STDOUT */
  32. return 0;
  33. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty