I have a trivial problem in C++ that I can't solve. I have an array of structs whose type is defined in main. When I pass the array to another function (which has the the struct declared in the ...