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_31475178_23031.cpp:7:2: error: 'a' does not name a type
 }a[101];
  ^
0_0_31475178_23031.cpp: In function 'int cmp(const void*, const void*)':
0_0_31475178_23031.cpp:10:31: error: invalid use of incomplete type 'struct cmp(const void*, const void*)::node'
      return (*(struct node*)a).v-(*(struct node *)b).v ;
                               ^
0_0_31475178_23031.cpp:10:23: error: forward declaration of 'struct cmp(const void*, const void*)::node'
      return (*(struct node*)a).v-(*(struct node *)b).v ;
                       ^
0_0_31475178_23031.cpp:10:53: error: invalid use of incomplete type 'struct cmp(const void*, const void*)::node'
      return (*(struct node*)a).v-(*(struct node *)b).v ;
                                                     ^
0_0_31475178_23031.cpp:10:23: error: forward declaration of 'struct cmp(const void*, const void*)::node'
      return (*(struct node*)a).v-(*(struct node *)b).v ;
                       ^
0_0_31475178_23031.cpp: In function 'int main()':
0_0_31475178_23031.cpp:12:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_31475178_23031.cpp:2:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_31475178_23031.cpp:19:19: error: 'a' was not declared in this scope
    scanf("%s%d%d",a[i].s,&a[i].pr,&a[i].ml
                   ^
0_0_31475178_23031.cpp:22:4: error: 'else' without a previous 'if'
    else a[i].v=(double)a[i].pr/(double)min(a[i].day,5);
    ^
0_0_31475178_23031.cpp:22:54: error: 'min' was not declared in this scope
    else a[i].v=(double)a[i].pr/(double)min(a[i].day,5);
                                                      ^
0_0_31475178_23031.cpp:24:9: error: 'a' was not declared in this scope
   qsort(a,n,sizeof(a[0]),cmp)
         ^
0_0_31475178_23031.cpp:24:29: error: 'qsort' was not declared in this scope
   qsort(a,n,sizeof(a[0]),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-11-17 05:45:13, Gzip enabled