F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_16722028_17909.c:10:1: error: unknown type name 'people'
 people peo1[1010];
 ^
0_0_16722028_17909.c: In function 'main':
0_0_16722028_17909.c:31:20: error: request for member 'name' in something not a structure or union
   strcpy(peo1[num1].name,name);
                    ^
0_0_16722028_17909.c:32:13: error: request for member 'time' in something not a structure or union
   peo1[num1].time=time;
             ^
0_0_16722028_17909.c:33:13: error: request for member 'num' in something not a structure or union
   peo1[num1].num=num;
             ^
0_0_16722028_17909.c:38:35: error: request for member 'name' in something not a structure or union
   printf("%-10s %2d %4d\n",peo1[i].name,peo1[i].num,peo1[i].time);
                                   ^
0_0_16722028_17909.c:38:48: error: request for member 'num' in something not a structure or union
   printf("%-10s %2d %4d\n",peo1[i].name,peo1[i].num,peo1[i].time);
                                                ^
0_0_16722028_17909.c:38:60: error: request for member 'time' in something not a structure or union
   printf("%-10s %2d %4d\n",peo1[i].name,peo1[i].num,peo1[i].time);
                                                            ^
0_0_16722028_17909.c: In function 'cmp':
0_0_16722028_17909.c:43:2: error: unknown type name 'people'
  people *p = (people*)a,*q=(people *)b;
  ^
0_0_16722028_17909.c:43:15: error: 'people' undeclared (first use in this function)
  people *p = (people*)a,*q=(people *)b;
               ^
0_0_16722028_17909.c:43:15: note: each undeclared identifier is reported only once for each function it appears in
0_0_16722028_17909.c:43:22: error: expected expression before ')' token
  people *p = (people*)a,*q=(people *)b;
                      ^
0_0_16722028_17909.c:44:6: error: request for member 'num' in something not a structure or union
  if(p->num!=q->num) return q->num-p->num;
      ^
0_0_16722028_17909.c:44:13: error: 'q' undeclared (first use in this function)
  if(p->num!=q->num) return q->num-p->num;
             ^
0_0_16722028_17909.c:44:36: error: request for member 'num' in something not a structure or union
  if(p->num!=q->num) return q->num-p->num;
                                    ^
0_0_16722028_17909.c:45:6: error: request for member 'time' in something not a structure or union
  if(p->time!=q->time) return q->time-p->time;
      ^
0_0_16722028_17909.c:45:39: error: request for member 'time' in something not a structure or union
  if(p->time!=q->time) return q->time-p->time;
                                       ^
0_0_16722028_17909.c:46:17: error: request for member 'name' in something not a structure or union
  return strcmp(p->name,q->name);
                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 17:40:13, Gzip enabled