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_21166338_10195.cpp: In function 'int comp(const void*, const void*)':
0_0_21166338_10195.cpp:17:7: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
  if(p1->x!=p2->x)
       ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:17:14: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
  if(p1->x!=p2->x)
              ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:18:14: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
   return -(p1->x-p2->x);
              ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:18:20: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
   return -(p1->x-p2->x);
                    ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:19:12: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
  else if(p1->y!=p2->y)
            ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:19:19: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
  else if(p1->y!=p2->y)
                   ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:20:12: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
   return p1->y-p2->y;
            ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:20:18: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
   return p1->y-p2->y;
                  ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:22:19: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
   return strcmp(p1->name,p2->name);
                   ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp:22:28: error: invalid use of incomplete type 'struct comp(const void*, const void*)::c'
   return strcmp(p1->name,p2->name);
                            ^
0_0_21166338_10195.cpp:15:9: error: forward declaration of 'struct comp(const void*, const void*)::c'
  struct c *p1=(struct c *)a;
         ^
0_0_21166338_10195.cpp: In function 'int main()':
0_0_21166338_10195.cpp:30:19: error: 'scan' was not declared in this scope
  scan("%d%d",&n,&m);
                   ^
0_0_21166338_10195.cpp:31:31: error: 'cscanf' was not declared in this scope
  while(cscanf("%s",stu[j].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 21:59:55, Gzip enabled