0_0_28783528_12405.c: In function 'cmp':
0_0_28783528_12405.c:10:2: error: unknown type name 'block'
block *xx = (block *) x;
^
0_0_28783528_12405.c:10:15: error: 'block' undeclared (first use in this function)
block *xx = (block *) x;
^
0_0_28783528_12405.c:10:15: note: each undeclared identifier is reported only once for each function it appears in
0_0_28783528_12405.c:10:22: error: expected expression before ')' token
block *xx = (block *) x;
^
0_0_28783528_12405.c:11:9: error: 'yy' undeclared (first use in this function)
block *yy = (block *) y;
^
0_0_28783528_12405.c:11:22: error: expected expression before ')' token
block *yy = (block *) y;
^
0_0_28783528_12405.c:12:7: error: request for member 'l' in something not a structure or union
if(xx->l == yy->l)
^
0_0_28783528_12405.c:13:12: error: request for member 'w' in something not a structure or union
return xx->w > yy->w;
^
0_0_28783528_12405.c:15:12: error: request for member 'l' in something not a structure or union
return xx->l > yy->l;
^
0_0_28783528_12405.c: In function 'main':
0_0_28783528_12405.c:37:22: error: 'block' undeclared (first use in this function)
qsort(a,len,sizeof(block),cmp);
^
|