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_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);
                      ^


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-12-04 23:37:48, Gzip enabled