0_0_13592441_23791.c:9:3: error: unknown type name 'INFOR'
};INFOR stu[1200];
^
0_0_13592441_23791.c:11:1: error: unknown type name 'bool'
bool cmp(INFOR a,INFOR b)
^
0_0_13592441_23791.c:11:10: error: unknown type name 'INFOR'
bool cmp(INFOR a,INFOR b)
^
0_0_13592441_23791.c:11:18: error: unknown type name 'INFOR'
bool cmp(INFOR a,INFOR b)
^
0_0_13592441_23791.c: In function 'main':
0_0_13592441_23791.c:32:10: error: request for member 'total' in something not a structure or union
stu[i].total=0;
^
0_0_13592441_23791.c:33:26: error: request for member 'a' in something not a structure or union
scanf("%s%d",stu[i].a,&stu[i].ac_num);
^
0_0_13592441_23791.c:33:36: error: request for member 'ac_num' in something not a structure or union
scanf("%s%d",stu[i].a,&stu[i].ac_num);
^
0_0_13592441_23791.c:34:23: error: request for member 'ac_num' in something not a structure or union
for(j=0;j<stu[i].ac_num;j++)
^
0_0_13592441_23791.c:36:29: error: request for member 'order_num' in something not a structure or union
scanf("%d",&stu[i].order_num[j]);
^
0_0_13592441_23791.c:37:17: error: request for member 'total' in something not a structure or union
stu[i].total+=score[stu[i].order_num[j]];
^
0_0_13592441_23791.c:37:37: error: request for member 'order_num' in something not a structure or union
stu[i].total+=score[stu[i].order_num[j]];
^
0_0_13592441_23791.c:39:16: error: request for member 'total' in something not a structure or union
if(stu[i].total>=g) mark++;
^
0_0_13592441_23791.c:42:21: error: 'cmp' undeclared (first use in this function)
sort(stu,stu+n,cmp);
^
0_0_13592441_23791.c:42:21: note: each undeclared identifier is reported only once for each function it appears in
0_0_13592441_23791.c:46:29: error: request for member 'a' in something not a structure or union
printf("%s %d\n",stu[i].a,stu[i].total);
^
0_0_13592441_23791.c:46:38: error: request for member 'total' in something not a structure or union
printf("%s %d\n",stu[i].a,stu[i].total);
^
|