This is the error for the function declaration statement for retstr.
"prog.cpp:5: error: expected unqualified-id before '[' token prog.cpp:5: error: expected initializer before '[' token"
Here is the code:
#include<stdio.h>
#include<math.h>
int n;
char *[] retstr(int k)
{
char* ans[10];
return(ans);
}
std::array.