[ERROR]
The return type of the function is too large for this compiler.
typedef struct A {
int i,j,k,l,m,n,o,p;
}A;
A f();
In C++, instead of a class/struct type, return a reference to it! In C, allocate the structure at the caller and pass a pointer/reference as additional parameter.