0_0_35562979_20963.c:17:1: error: unknown type name 'str'
str s[100];
^
0_0_35562979_20963.c: In function 'cmp':
0_0_35562979_20963.c:20:17: error: 'str' undeclared (first use in this function)
struct str *c=(str *)a;
^
0_0_35562979_20963.c:20:17: note: each undeclared identifier is reported only once for each function it appears in
0_0_35562979_20963.c:20:22: error: expected expression before ')' token
struct str *c=(str *)a;
^
0_0_35562979_20963.c:21:22: error: expected expression before ')' token
struct str *d=(str *)b;
^
0_0_35562979_20963.c: In function 'main':
0_0_35562979_20963.c:30:26: error: request for member 'name' in something not a structure or union
while (scanf("%s", &s[i].name) != EOF)
^
0_0_35562979_20963.c:32:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=0;j<n;j++)
^
0_0_35562979_20963.c:32:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_35562979_20963.c:45:14: error: request for member 'acnum' in something not a structure or union
s[i].acnum++;
^
0_0_35562979_20963.c:46:14: error: request for member 'time' in something not a structure or union
s[i].time+=a;
^
0_0_35562979_20963.c:51:2: error: expected expression before '/' token
// printf("%s",data[0]);
^
0_0_35562979_20963.c:54:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=0;j<i;j++)
^
0_0_35562979_20963.c:56:24: error: request for member 'name' in something not a structure or union
printf("%s\t ",s[j].name);
^
0_0_35562979_20963.c:57:10: error: request for member 'acnum' in something not a structure or union
if(s[j].acnum>9)printf("%d ",s[j].acnum);
^
0_0_35562979_20963.c:57:36: error: request for member 'acnum' in something not a structure or union
if(s[j].acnum>9)printf("%d ",s[j].acnum);
^
0_0_35562979_20963.c:58:26: error: request for member 'acnum' in something not a structure or union
else printf(" %d ",s[j].acnum);
^
0_0_35562979_20963.c:59:10: error: request for member 'time' in something not a structure or union
if(s[j].time<10)printf(" %d\n",s[j].time);
^
0_0_35562979_20963.c:59:40: error: request for member 'time' in something not a structure or union
if(s[j].time<10)printf(" %d\n",s[j].time);
^
0_0_35562979_20963.c:60:15: error: request for member 'time' in something not a structure or union
else if(s[j].time<100)printf(" %d\n",s[j].time);
^
0_0_35562979_20963.c:60:45: error: request for member 'time' in something not a structure or union
else if(s[j].time<100)printf(" %d\n",s[j].time);
^
0_0_35562979_20963.c:61:15: error: request for member 'time' in something not a structure or union
else if(s[j].time<1000)printf(" %d\n",s[j].time);
^
0_0_35562979_20963.c:61:45: error: request for member 'time' in something not a structure or union
else if(s[j].time<1000)printf(" %d\n",s[j].time);
^
0_0_35562979_20963.c:62:26: error: request for member 'time' in something not a structure or union
else printf("%d\n",s[j].time);
^
|