fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct test {
  5.  
  6. struct inner {
  7. int n[10];
  8. };
  9.  
  10. inner in;
  11. };
  12.  
  13. int main() {
  14. test t;
  15. t.in = test::inner{ {1, 2, 3, 4, 5, 6, 7, 8, 9} };
  16. for (int i : t.in.n)
  17. cout << i << endl;
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1
2
3
4
5
6
7
8
9
0