fork download
  1. #include <vector>
  2. #include <string>
  3. #include <iostream>
  4. #include <iomanip>
  5. #include <map>
  6.  
  7. using namespace std;
  8.  
  9.  
  10. class Arc {
  11. private:
  12. unsigned capacity;
  13. unsigned flow;
  14.  
  15. public:
  16. Arc(unsigned _flow = 0, unsigned _capacity = 0) {};
  17. virtual ~Arc() {};
  18.  
  19. unsigned getCapacity() const;
  20. unsigned getFlow() const;
  21. void setCapacity(unsigned _capacity);
  22. void setFlow(unsigned _flow);
  23. bool operator==(const Arc &arc) const;
  24. };
  25.  
  26.  
  27.  
  28. int main(int argc, const char * argv[])
  29. {
  30. map<string, map<string, Arc> > graph;
  31. }
  32.  
Success #stdin #stdout 0s 4540KB
stdin
Standard input is empty
stdout
Standard output is empty