fork download
  1. #include <iostream>
  2. #include <utility>
  3. #include <list>
  4. using namespace std;
  5.  
  6. class Graph{
  7. int n_v;
  8. list<pair<int, int> > *adj;
  9. public:
  10. Graph(int _n_v){
  11. n_v = _n_v;
  12. adj = new list<pair<int, int> >[n_v];
  13. }
  14. };
  15.  
  16. int main()
  17. {
  18. Graph graph(10);
  19. return 0;
  20. }
Success #stdin #stdout 0s 16048KB
stdin
Standard input is empty
stdout
Standard output is empty