fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <class T>
  5. class a
  6. {
  7. public:
  8. int n;
  9. };
  10.  
  11. template <class T>
  12. class b : public a<T>
  13. {
  14. public:
  15. b()
  16. {
  17. this->n = 1;
  18. }
  19. };
  20.  
  21.  
  22. int main() {
  23. // your code goes here
  24. return 0;
  25. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty