prog.c: In function ‘main’:
prog.c:6:27: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘{’ token
for(struct st{ int a{9}; }t;i<3;i++)
^
prog.c:6:7: error: ‘struct st’ declared in ‘for’ loop initial declaration
for(struct st{ int a{9}; }t;i<3;i++)
^~~
prog.c:7:29: error: ‘struct st’ has no member named ‘a’
printf("%d\n", t.a);
^
prog.c:6:33: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]
for(struct st{ int a{9}; }t;i<3;i++)
^