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