fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A{
  5. public:
  6. struct AS{
  7. int n;
  8. };
  9. };
  10.  
  11. class B{
  12. public:
  13.  
  14. B(A::AS a){}
  15. };
  16.  
  17. int main() {
  18. B{A::AS{}};
  19. // your code goes here
  20. return 0;
  21. }
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty