fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <memory>
  4. using namespace std;
  5. template<class T>
  6. class Node
  7. {
  8. public:
  9. typedef shared_ptr< Node<T> > Ptr;
  10.  
  11. public:
  12. T data;
  13.  
  14. vector<Ptr> childs;
  15. };
  16. int main() {
  17. Node<int> test;
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0s 4464KB
stdin
Standard input is empty
stdout
Standard output is empty