typedef char line_t[MAX_INPUT + 1];
struct {
line_t line;
double score;
int linenumber;
} line_rank;
struct line_rank lines[MAX_LINES + 1];
Produces this : error: array type has incomplete element type which refers to the last line in the code I have provided.
I have looked everywhere and can't seem to find another question relating to structs manipulated in such a way.
struct line_rankis incomplete, because it has not be defined anywhere.line_rankhaving this type.