fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct InnerNode;
  5.  
  6. class InnerList {
  7. public:
  8. InnerList() : innerhead(nullptr){}
  9. ~InnerList() {}
  10. void add(InnerNode*) {}
  11. private:
  12. InnerNode* innerhead;
  13. };
  14.  
  15. struct OuterNode {
  16. InnerList flights;
  17. int name;
  18. OuterNode* next;
  19. };
  20.  
  21. struct InnerNode {
  22. OuterNode* dest;
  23. int price;
  24. InnerNode* next;
  25. };
  26.  
  27.  
  28. int main() {
  29. OuterNode outerNode; // Create an instance of OuterNode
  30.  
  31. return 0;
  32. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty