#include <iostream> #include <array> struct A { int foo; double bar; }; struct Aarray { A data[2]; }; int main() { Aarray a1 = { {0, 0.1}, {2, 3.4} }; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:21:3: error: too many initializers for 'Aarray'
Standard output is empty