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_3259334_3379.cpp:15: error: `p1' has incomplete type
0_0_3259334_3379.cpp:15: error: invalid use of `const void'
0_0_3259334_3379.cpp:15: error: `p2' has incomplete type
0_0_3259334_3379.cpp:15: error: invalid use of `const void'
0_0_3259334_3379.cpp: In function `int cmp1(<type error>, <type error>)':
0_0_3259334_3379.cpp:16: error: cannot convert `p1' from type `<type error>' to type `Student*'
0_0_3259334_3379.cpp:16: error: cannot convert `p2' from type `<type error>' to type `Student*'
0_0_3259334_3379.cpp: At global scope:
0_0_3259334_3379.cpp:19: error: `p1' has incomplete type
0_0_3259334_3379.cpp:19: error: invalid use of `const void'
0_0_3259334_3379.cpp:19: error: `p2' has incomplete type
0_0_3259334_3379.cpp:19: error: invalid use of `const void'
0_0_3259334_3379.cpp: In function `int cmp2(<type error>, <type error>)':
0_0_3259334_3379.cpp:20: error: cannot convert `p2' from type `<type error>' to type `Student*'
0_0_3259334_3379.cpp:20: error: cannot convert `p1' from type `<type error>' to type `Student*'
0_0_3259334_3379.cpp: At global scope:
0_0_3259334_3379.cpp:23: error: `p1' has incomplete type
0_0_3259334_3379.cpp:23: error: invalid use of `const void'
0_0_3259334_3379.cpp:23: error: `p2' has incomplete type
0_0_3259334_3379.cpp:23: error: invalid use of `const void'
0_0_3259334_3379.cpp: In function `int cmp3(<type error>, <type error>)':
0_0_3259334_3379.cpp:24: error: cannot convert `p2' from type `<type error>' to type `Student*'
0_0_3259334_3379.cpp:24: error: cannot convert `p1' from type `<type error>' to type `Student*'
0_0_3259334_3379.cpp: In function `int main()':
0_0_3259334_3379.cpp:39: error: invalid conversion from `int (*)(<type error>, <type error>)' to `int (*)(const void*, const void*)'
0_0_3259334_3379.cpp:39: error:   initializing argument 4 of `void qsort(void*, size_t, size_t, int (*)(const void*, const void*))'
0_0_3259334_3379.cpp:40: error: invalid conversion from `int (*)(<type error>, <type error>)' to `int (*)(const void*, const void*)'
0_0_3259334_3379.cpp:40: error:   initializing argument 4 of `void qsort(void*, size_t, size_t, int (*)(const void*, const void*))'
0_0_3259334_3379.cpp:41: error: invalid conversion from `int (*)(<type error>, <type error>)' to `int (*)(const void*, const void*)'
0_0_3259334_3379.cpp:41: error:   initializing argument 4 of `void qsort(void*, size_t, size_t, int (*)(const void*, const void*))'


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 08:21:39, Gzip enabled